41 #define _IARM_XDEVICE_NAME "XDEVICE"
42 #define MAX_DEBUG_MESSAGE 50
45 #define BOOL unsigned char
50 gchar *bcastIf, *streamIf, *trmIf, *gwIf, *cvpIf, *ruiPath, *uriOverride, *hostMacIf;
51 gchar *oemFile, *dnsFile, *dsgFile, *diagFile, *hostsFile, *devXmlPath, *devXmlFile, *cvpXmlFile, *logFile, *devPropertyFile,*ipv6FileLocation,*ipv6PrefixFile,*deviceNameFile;
52 gboolean enableCVP2, useIARM, allowGwy, enableTRM, useGliDiag, disableTuneReady,enableHostMacPblsh,rmfCrshSupp,wareHouseMode;
53 gint bcastPort, cvpPort;
57 GString *url, *trmurl, *playbackurl, *gwyip, *gwyipv6, *dnsconfig, *systemids, *serial_num, *lan_ip, *recv_id,*partner_id,*hostmacaddress,*devicetype,*recvdevtype,*buildversion,*ipv6prefix,*gwystbip,*bcastmacaddress,*devicename,*mocaIface,*wifiIface,*dataGatewayIPaddress;
58 GString *trmurlCVP2, *playbackurlCVP2, *gwyipCVP2;
59 unsigned long channelmap_id, dac_id, plant_id, vodserver_id;
60 GString *dsgtimezone, *etchosts;
61 GUPnPRootDevice *dev, *cvpdev, *baseDev;
62 GUPnPServiceInfo *upnpService, *cvpservice, *upnpIdService, *upnpMediaConfService, *upnpTimeConf, *upnpGatewayConf, *upnpQamConf;
63 GUPnPContext *upnpContext, *cvpcontext, *upnpContextDeviceProtect;
65 gboolean isgateway, tune_ready, service_ready, requirestrm, usesDaylightTime;
66 gint dstOffset, rawOffset, dstSavings;
67 GString *ruiurl, *inDevProfile, *uiFilter;
73 int set_content(xmlDoc* doc,
const char * node_name,
const char * new_value);
74 char *
get_content(xmlDoc* doc,
const char * node_name);
76 unsigned long getidfromdiagfile(
const gchar *diagparam,
const gchar *diagfilecontents);
81 gboolean readconfile(
const char*);
82 gboolean updateuuid(
const char*,
const char*,
const char*);
89 GString*
getID(
const gchar* );
90 int getipaddress(
const char* ifname,
char* ipAddressBuffer, gboolean ipv6Enabled);
95 gboolean getFogStatus(
void);
96 void getRouteData(
void);
99 BOOL getTrmUrl(
char *outValue);
101 BOOL getPlaybackUrl(
char *outValue);
106 BOOL getHostMacAddress(
char *outValue);
109 BOOL getBuildVersion(
char *outValue);
110 BOOL getDnsConfig(
char *outValue);
111 BOOL getSystemsIds(
char *outValue);
112 BOOL getRouteDataGateway(
char *outValue);
113 BOOL getIpSubnet(
char *outValue);
114 BOOL getIsuseGliDiagEnabled();
115 BOOL getTimeZone(
char *outValue);
116 BOOL getRawOffSet(
int *outValue);
117 BOOL getDstSavings(
int *outValue);
118 BOOL getUsesDayLightTime(BOOL *outValue);
120 BOOL getDstOffset(
int *outValue);
121 BOOL getHosts(
char *outValue);
122 BOOL getIsGateway(BOOL *outValue);
123 BOOL getRequiresTRM(BOOL *outValue);
124 BOOL getRUIUrl(
char *outValue);
125 BOOL getModelNumber(
char *outValue);
126 BOOL getMake(
char *outValue);
127 BOOL getDevXmlPath(
char *outValue);
128 BOOL getDevXmlFile(
char *outValue,
int refactor);
129 BOOL getUUID(
char *outValue);
130 BOOL getBcastPort(
int *outValue);
131 BOOL getSerialNum(
char *outValue);
132 BOOL getBcastIf(
char *outValue);
134 BOOL getAccountId(
char *outValue);
135 BOOL getDevCertFile(
char *outValue);
136 BOOL getDevCertPath(
char *outValue);
137 BOOL getDevKeyFile(
char *outValue);
138 BOOL getDevKeyPath(
char *outValue);
139 BOOL getReceiverId(
char *outValue);
140 typedef void (*xupnpEventCallback)(
const char*,
const char*);
141 void xupnpEventCallback_register(xupnpEventCallback callback_proc);
142 BOOL xdeviceInit(
char *devConfFile,
char *devLogFile);
144 #ifndef CLIENT_XCAL_SERVER
145 BOOL getDisableTuneReadyStatus();
146 BOOL checkCVP2Enabled();
147 BOOL getCVPIf(
char *outValue);
148 BOOL getCVPXmlFile(
char *outValue);
149 BOOL getCVPPort(
int *outValue);
158 char tsbEndpoint[33];
159 bool bIPDVRSupported;
162 #define IARM_BUS_FOG_NAME "FOG"
163 #define IARM_BUS_FOG_getCurrentState "getCurrentState"
167 IARM_BUS_FOG_EVENT_STATUS,
168 IARM_BUS_FOG_EVENT_MAX
174 #define IARM_BUS_NM_SRV_MGR_NAME "NET_SRV_MGR"
175 #define IARM_BUS_NETSRVMGR_Route_Event "sendCurrentRouteData"
176 #define IARM_BUS_ROUTE_MGR_API_getCurrentRouteData "getCurrentRouteData"
190 typedef enum _NetworkManager_Route_EventId_t {
191 IARM_BUS_NETWORK_MANAGER_EVENT_ROUTE_DATA=10,
192 IARM_BUS_NETWORK_MANAGER_EVENT_ROUTE_MAX,
193 } IARM_Bus_NetworkManager_Route_EventId_t;