RDK Documentation (Open Sourced RDK Components)
|
Describe the details about XCal-Device functional specifications.
Functions | |
gboolean | readDevFile (const char *deviceFile) |
This function is used to get partner ID. More... | |
gboolean | is_num (const gchar *str) |
Supporting function for checking the content of given string is numeric or not. More... | |
unsigned char | check_empty (char *str) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getBaseUrl (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getFogTsbUrl (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getDeviceName (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getDeviceType (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getBcastMacAddress (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getGatewayStbIp (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getGatewayIpv6 (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getGatewayIp (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
unsigned char | getRecvDevType (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
gboolean | is_alphanum (const gchar *str) |
Supporting function for checking the given string is alphanumeric. More... | |
GString * | getID (const gchar *id) |
This function is used to get the Receiver Id & Partner Id. More... | |
gboolean | updatesystemids (void) |
This function is used to update the system Ids such as channelMapId, controllerId, plantId and vodServerId. More... | |
gboolean | parsedevicename (void) |
This function is used to get the device name from /devicename/devicename file. More... | |
gboolean | parseipv6prefix (void) |
This function is used to retrieve the IPv6 prefix information from dibblers file. More... | |
gboolean | readconffile (const char *configfile) |
This function is used to retrieve the data from the device configuration file. More... | |
GString * | get_eSTBMAC (void) |
This function is used to get the MAC address of the eSTB. It uses global hostmacaddress GString to get the address value. More... | |
gboolean | getetchosts (void) |
This function is used to get the hosts IP information from hosts configuration file "/etc/hosts". More... | |
gboolean | parseserialnum (GString *serial_num) |
This function is used to get the serial number of the device from the vendor specific file. More... | |
unsigned long | getidfromdiagfile (const gchar *diagparam, const gchar *diagfilecontents) |
This function is used to get the system Id information from the diagnostic file. More... | |
gboolean | parsednsconfig (void) |
This function is used to get the DNS value from DNS mask configuration file. More... | |
gchar * | getmacaddress (const gchar *ifname) |
This function is used to get the mac address of the target device. More... | |
int | getipaddress (const char *ifname, char *ipAddressBuffer, gboolean ipv6Enabled) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
void | xupnp_logger (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
This function is used to log the messages of XUPnP applications. Each Log message will be written to a file along with the timestamp formated in ISO8601 format. More... | |
G_MODULE_EXPORT void | get_url_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getBaseURL action is invoked and this sets the state variable for base url. More... | |
G_MODULE_EXPORT void | get_trm_url_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getBaseTrmUrl action is invoked and this sets the state variable for base TRM Url. More... | |
G_MODULE_EXPORT void | get_playback_url_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getPlaybackUrl action is invoked and this sets the state variable for Playback Url. More... | |
G_MODULE_EXPORT void | get_gwyip_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getGatewayIP action is invoked and this sets the state variable for Gateway IP. More... | |
G_MODULE_EXPORT void | get_gwyipv6_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getGatewayIPv6 action is invoked and this sets the state variable for Gateway IPv6. More... | |
G_MODULE_EXPORT void | get_gwystbip_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getGatewayStbIP action is invoked and this sets the state variable for Gateway STB IP. More... | |
G_MODULE_EXPORT void | get_ipv6prefix_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getIpv6Prefix action is invoked and this sets the state variable for IPv6 Prefix. More... | |
G_MODULE_EXPORT void | get_hostmacaddress_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getHostMacAddress action is invoked and this sets the state variable for Host MAC Address. More... | |
G_MODULE_EXPORT void | get_bcastmacaddress_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getBcastMacAddress action is invoked and this sets the state variable for Broadcast MAC Address. More... | |
G_MODULE_EXPORT void | get_recvdevtype_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getRecvDevType action is invoked and this sets the state variable for Receive Device Type. More... | |
G_MODULE_EXPORT void | get_buildversion_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getBuildVersion action is invoked and this sets the state variable for Build Version. More... | |
G_MODULE_EXPORT void | get_dnsconfig_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getDnsConfig action is invoked and this sets the state variable for DNS Config. More... | |
G_MODULE_EXPORT void | get_systemids_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getSystemIds action is invoked and this sets the state variable for System Id. More... | |
G_MODULE_EXPORT void | get_dataGatewayIPaddress_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getdataGatewayIPaddress action is invoked and this sets the state variable for DataGatewayIPaddress. More... | |
G_MODULE_EXPORT void | get_timezone_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when TimeZone action is invoked and this sets the state variable for Time Zone. More... | |
G_MODULE_EXPORT void | get_rawoffset_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getRawOffSet action is invoked and this sets the state variable for Raw Offset. More... | |
G_MODULE_EXPORT void | get_dstsavings_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getDSTSavings action is invoked and this sets the state variable for DST Savings. More... | |
G_MODULE_EXPORT void | get_usesdaylighttime_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getUsesDaylightTime action is invoked and this sets the state variable for Uses Daylight Time. More... | |
G_MODULE_EXPORT void | get_devicename_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getDeviceName action is invoked and this sets the state variable for Uses Service Name. More... | |
G_MODULE_EXPORT void | get_dstoffset_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getDSTOffset action is invoked and this sets the state variable for DST Offset. More... | |
G_MODULE_EXPORT void | get_hosts_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getHosts action is invoked and this sets the state variable for Hosts. More... | |
G_MODULE_EXPORT void | get_isgateway_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getIsGateway action is invoked and this sets the state variable for Gatway is active or not. More... | |
G_MODULE_EXPORT void | get_requirestrm_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getRequiresTRM action is invoked and this sets the state variable for Requiring TRM. More... | |
G_MODULE_EXPORT void | get_rui_url_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when GetCompatibleUIs action is invoked and this sets the state variable for InputDeviceProfile, UIFilter and UIListing. More... | |
G_MODULE_EXPORT void | query_url_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when getUrl action is invoked. More... | |
G_MODULE_EXPORT void | query_trm_url_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when TrmUrl action is invoked and this sets the state variable with a new TRM Url value. More... | |
G_MODULE_EXPORT void | query_playback_url_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when PlaybackUrl action is invoked and this sets the state variable with a new playback url. More... | |
G_MODULE_EXPORT void | query_dataGatewayIPaddress_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when DataGatewayIPaddress action is invoked and this sets the state variable with a new DataGatewayIPaddress. More... | |
G_MODULE_EXPORT void | query_devicename_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when DeviceName action is invoked and this sets the state variable with a new device name. More... | |
G_MODULE_EXPORT void | query_gwyip_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when GatewayIP action is invoked and this sets the state variable with a new Gateway IP. More... | |
G_MODULE_EXPORT void | query_gwyipv6_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when Ipv6Prefix action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_gwystbip_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when GatewayStbIP action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_ipv6prefix_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when Ipv6Prefix action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_hostmacaddress_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when HostMacAddress action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_bcastmacaddress_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when BcastMacAddress action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_recvdevtype_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when RecvDevType action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_buildversion_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when BuildVersion action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_dnsconfig_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when DnsConfig action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_systemids_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when SystemIds action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_timezone_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when TimeZone action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_hosts_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when Hosts action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_isgateway_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when IsGateway action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_requirestrm_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when RequiresTRM action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_rui_url_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when RuiUrl action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_rawoffset_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when RawOffSet action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_dstoffset_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when DSTOffset action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_dstsavings_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when DSTSavings action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_usesdaylighttime_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when UsesDaylightTime action is invoked and this sets the state variable with a new value. More... | |
gboolean | getdnsconfig (void) |
This function is used to get the DNS value from DNS mask configuration file. More... | |
gboolean | gettimezone (void) |
This function is used to get the time zone. It gets the time zone information from the device configuration. More... | |
gboolean | getserialnum (GString *serial_num) |
This function is used to get the serial number of the device from the vendor specific file. More... | |
gboolean | getruiurl () |
This function is used to get the RUI(Remote user interface) Url. It uses xdevice.conf file to get the RUI Url. If the xdevice.conf file is not present then create the the RUI url string. More... | |
int | set_content (xmlDoc *doc, const char *node_name, const char *new_value) |
This function is used to set new value to the given node from the xml file. More... | |
char * | get_content (xmlDoc *doc, const char *node_name) |
This function is used to get the value of the node from the xml file. More... | |
xmlDoc * | open_document (const char *file_name) |
Supporting function for reading the XML file. More... | |
gboolean | updatexmldata (const char *xmlfilename, const char *struuid, const char *serialno, const char *friendlyName) |
This function is used to update the xml node values UDN, serialNumber and friendlyName. More... | |
void | notify_value_change (const char *varname, const char *strvalue) |
A generic function to notify all the clients whenever there is a change found in the service variable values. More... | |
void | notify_value_change_int (const char *varname, int intvalue) |
Generic function to notify the change in the node value which are of integers type from the XML service file. More... | |
void | notify_timezone (void) |
Generic function to notify the change in the time zone. | |
gboolean | getipv6prefix (void) |
This function is used to retrieve the IPv6 prefix information from dibblers file. More... | |
gboolean | getdevicename (void) |
This function is used to get the device name from /devicename/devicename file. More... | |
static char * | getStrValueFromMap (char *pszKey, int nPairs, STRING_MAP map[]) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
BOOL | getIpv6Prefix (char *outValue) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled. More... | |
G_MODULE_EXPORT void | get_ipsubnet_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when IPSubNet action is invoked and this sets the state variable for IPSubNet. More... | |
G_MODULE_EXPORT void | get_client_ip_cb (GUPnPService *service, GUPnPServiceAction *action, gpointer user_data) |
Callback function which is invoked when getClientIP action is invoked and this sets the state variable for Client IP. More... | |
G_MODULE_EXPORT void | query_ipsubnet_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when IPSubNet action is invoked and this sets the state variable with a new value. More... | |
G_MODULE_EXPORT void | query_client_ip_cb (GUPnPService *service, char *variable, GValue *value, gpointer user_data) |
Callback function which is invoked when ClientIP action is invoked and this sets the state variable with a new Gateway IP. More... | |
gboolean readDevFile | ( | const char * | deviceFile | ) |
This function is used to get partner ID.
This function is used to retrieve the information from the device file.
This function is used to retrieve the information from the device file.
[in] | deviceFile | Name of the device configuration file. |
[in] | deviceFile | Name of the device configuration file. |
Definition at line 385 of file xcal-device-library.c.
gboolean is_num | ( | const gchar * | str | ) |
Supporting function for checking the content of given string is numeric or not.
[in] | str | String for which the contents need to be verified. |
Definition at line 522 of file xcal-device-library.c.
unsigned char check_empty | ( | char * | str | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 546 of file xcal-device-library.c.
unsigned char getBaseUrl | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 571 of file xcal-device-library.c.
unsigned char getFogTsbUrl | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 600 of file xcal-device-library.c.
unsigned char getDeviceName | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 633 of file xcal-device-library.c.
unsigned char getDeviceType | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 666 of file xcal-device-library.c.
unsigned char getBcastMacAddress | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 701 of file xcal-device-library.c.
unsigned char getGatewayStbIp | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 747 of file xcal-device-library.c.
unsigned char getGatewayIpv6 | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 780 of file xcal-device-library.c.
unsigned char getGatewayIp | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 813 of file xcal-device-library.c.
unsigned char getRecvDevType | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 848 of file xcal-device-library.c.
gboolean is_alphanum | ( | const gchar * | str | ) |
Supporting function for checking the given string is alphanumeric.
[in] | str | String to be verified. |
Definition at line 1177 of file xcal-device-library.c.
GString* getID | ( | const gchar * | id | ) |
This function is used to get the Receiver Id & Partner Id.
When box in warehouse mode, the box does not have the receiver Id so the box need to be put the broadcast MAC address as receiver Id.
[in] | id | The Device ID node for which the value need to be retrieved. It is also used for getting Partner Id. |
Definition at line 2074 of file xcal-device-library.c.
gboolean updatesystemids | ( | void | ) |
This function is used to update the system Ids such as channelMapId, controllerId, plantId and vodServerId.
Definition at line 2147 of file xcal-device-library.c.
gboolean parsedevicename | ( | void | ) |
This function is used to get the device name from /devicename/devicename file.
Definition at line 2192 of file xcal-device-library.c.
gboolean parseipv6prefix | ( | void | ) |
This function is used to retrieve the IPv6 prefix information from dibblers file.
Definition at line 2241 of file xcal-device-library.c.
gboolean readconffile | ( | const char * | configfile | ) |
This function is used to retrieve the data from the device configuration file.
[in] | configfile | Device configuration file name. |
Definition at line 2328 of file xcal-device-library.c.
GString * get_eSTBMAC | ( | void | ) |
This function is used to get the MAC address of the eSTB. It uses global hostmacaddress GString to get the address value.
Definition at line 2519 of file xcal-device-library.c.
gboolean getetchosts | ( | void | ) |
This function is used to get the hosts IP information from hosts configuration file "/etc/hosts".
Definition at line 2718 of file xcal-device-library.c.
gboolean parseserialnum | ( | GString * | serial_num | ) |
This function is used to get the serial number of the device from the vendor specific file.
[out] | serial_num | Manufacturer serial number |
Definition at line 2777 of file xcal-device-library.c.
unsigned long getidfromdiagfile | ( | const gchar * | diagparam, |
const gchar * | diagfilecontents | ||
) |
This function is used to get the system Id information from the diagnostic file.
[in] | diagparam | Parameter for which value(system Id) need to be retrieved from the diagnostic file. |
[in] | diagfilecontents | The diagnostic filename |
Definition at line 2846 of file xcal-device-library.c.
gboolean parsednsconfig | ( | void | ) |
This function is used to get the DNS value from DNS mask configuration file.
Definition at line 2869 of file xcal-device-library.c.
gchar* getmacaddress | ( | const gchar * | ifname | ) |
This function is used to get the mac address of the target device.
[in] | ifname | Name of the network interface. |
Definition at line 2920 of file xcal-device-library.c.
int getipaddress | ( | const char * | ifname, |
char * | ipAddressBuffer, | ||
gboolean | ipv6Enabled | ||
) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 2951 of file xcal-device-library.c.
void xupnp_logger | ( | const gchar * | log_domain, |
GLogLevelFlags | log_level, | ||
const gchar * | message, | ||
gpointer | user_data | ||
) |
This function is used to log the messages of XUPnP applications. Each Log message will be written to a file along with the timestamp formated in ISO8601 format.
[in] | log_domain | Character pointer variable for domain name. |
[in] | log_level | Variable of glib log level enum. |
[in] | message | Character pointer for the log message string. |
[in] | user_data | Void pointer variable. |
Definition at line 659 of file xcal-device.c.
G_MODULE_EXPORT void get_url_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getBaseURL action is invoked and this sets the state variable for base url.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 689 of file xcal-device.c.
G_MODULE_EXPORT void get_trm_url_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getBaseTrmUrl action is invoked and this sets the state variable for base TRM Url.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 710 of file xcal-device.c.
G_MODULE_EXPORT void get_playback_url_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getPlaybackUrl action is invoked and this sets the state variable for Playback Url.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 728 of file xcal-device.c.
G_MODULE_EXPORT void get_gwyip_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getGatewayIP action is invoked and this sets the state variable for Gateway IP.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 756 of file xcal-device.c.
G_MODULE_EXPORT void get_gwyipv6_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getGatewayIPv6 action is invoked and this sets the state variable for Gateway IPv6.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 774 of file xcal-device.c.
G_MODULE_EXPORT void get_gwystbip_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getGatewayStbIP action is invoked and this sets the state variable for Gateway STB IP.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 793 of file xcal-device.c.
G_MODULE_EXPORT void get_ipv6prefix_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getIpv6Prefix action is invoked and this sets the state variable for IPv6 Prefix.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 812 of file xcal-device.c.
G_MODULE_EXPORT void get_hostmacaddress_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getHostMacAddress action is invoked and this sets the state variable for Host MAC Address.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 830 of file xcal-device.c.
G_MODULE_EXPORT void get_bcastmacaddress_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getBcastMacAddress action is invoked and this sets the state variable for Broadcast MAC Address.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 848 of file xcal-device.c.
G_MODULE_EXPORT void get_recvdevtype_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getRecvDevType action is invoked and this sets the state variable for Receive Device Type.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 866 of file xcal-device.c.
G_MODULE_EXPORT void get_buildversion_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getBuildVersion action is invoked and this sets the state variable for Build Version.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 892 of file xcal-device.c.
G_MODULE_EXPORT void get_dnsconfig_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getDnsConfig action is invoked and this sets the state variable for DNS Config.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 910 of file xcal-device.c.
G_MODULE_EXPORT void get_systemids_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getSystemIds action is invoked and this sets the state variable for System Id.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 928 of file xcal-device.c.
G_MODULE_EXPORT void get_dataGatewayIPaddress_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getdataGatewayIPaddress action is invoked and this sets the state variable for DataGatewayIPaddress.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 947 of file xcal-device.c.
G_MODULE_EXPORT void get_timezone_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when TimeZone action is invoked and this sets the state variable for Time Zone.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 964 of file xcal-device.c.
G_MODULE_EXPORT void get_rawoffset_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getRawOffSet action is invoked and this sets the state variable for Raw Offset.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 984 of file xcal-device.c.
G_MODULE_EXPORT void get_dstsavings_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getDSTSavings action is invoked and this sets the state variable for DST Savings.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1001 of file xcal-device.c.
G_MODULE_EXPORT void get_usesdaylighttime_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getUsesDaylightTime action is invoked and this sets the state variable for Uses Daylight Time.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1018 of file xcal-device.c.
G_MODULE_EXPORT void get_devicename_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getDeviceName action is invoked and this sets the state variable for Uses Service Name.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1035 of file xcal-device.c.
G_MODULE_EXPORT void get_dstoffset_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getDSTOffset action is invoked and this sets the state variable for DST Offset.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1053 of file xcal-device.c.
G_MODULE_EXPORT void get_hosts_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getHosts action is invoked and this sets the state variable for Hosts.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1070 of file xcal-device.c.
G_MODULE_EXPORT void get_isgateway_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getIsGateway action is invoked and this sets the state variable for Gatway is active or not.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1089 of file xcal-device.c.
G_MODULE_EXPORT void get_requirestrm_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getRequiresTRM action is invoked and this sets the state variable for Requiring TRM.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1107 of file xcal-device.c.
G_MODULE_EXPORT void get_rui_url_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when GetCompatibleUIs action is invoked and this sets the state variable for InputDeviceProfile, UIFilter and UIListing.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 1124 of file xcal-device.c.
G_MODULE_EXPORT void query_url_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getUrl action is invoked.
[in] | service | Name of the service. |
[in] | variable | State(Query)variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1154 of file xcal-device.c.
G_MODULE_EXPORT void query_trm_url_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when TrmUrl action is invoked and this sets the state variable with a new TRM Url value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1172 of file xcal-device.c.
G_MODULE_EXPORT void query_playback_url_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when PlaybackUrl action is invoked and this sets the state variable with a new playback url.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1190 of file xcal-device.c.
G_MODULE_EXPORT void query_dataGatewayIPaddress_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when DataGatewayIPaddress action is invoked and this sets the state variable with a new DataGatewayIPaddress.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1219 of file xcal-device.c.
G_MODULE_EXPORT void query_devicename_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when DeviceName action is invoked and this sets the state variable with a new device name.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1239 of file xcal-device.c.
G_MODULE_EXPORT void query_gwyip_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when GatewayIP action is invoked and this sets the state variable with a new Gateway IP.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1257 of file xcal-device.c.
G_MODULE_EXPORT void query_gwyipv6_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when Ipv6Prefix action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1275 of file xcal-device.c.
G_MODULE_EXPORT void query_gwystbip_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when GatewayStbIP action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1293 of file xcal-device.c.
G_MODULE_EXPORT void query_ipv6prefix_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when Ipv6Prefix action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1311 of file xcal-device.c.
G_MODULE_EXPORT void query_hostmacaddress_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when HostMacAddress action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1329 of file xcal-device.c.
G_MODULE_EXPORT void query_bcastmacaddress_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when BcastMacAddress action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1347 of file xcal-device.c.
G_MODULE_EXPORT void query_recvdevtype_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when RecvDevType action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1365 of file xcal-device.c.
G_MODULE_EXPORT void query_buildversion_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when BuildVersion action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1391 of file xcal-device.c.
G_MODULE_EXPORT void query_dnsconfig_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when DnsConfig action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1409 of file xcal-device.c.
G_MODULE_EXPORT void query_systemids_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when SystemIds action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1427 of file xcal-device.c.
G_MODULE_EXPORT void query_timezone_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when TimeZone action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1446 of file xcal-device.c.
G_MODULE_EXPORT void query_hosts_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when Hosts action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1466 of file xcal-device.c.
G_MODULE_EXPORT void query_isgateway_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when IsGateway action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1485 of file xcal-device.c.
G_MODULE_EXPORT void query_requirestrm_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when RequiresTRM action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1504 of file xcal-device.c.
G_MODULE_EXPORT void query_rui_url_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when RuiUrl action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1523 of file xcal-device.c.
G_MODULE_EXPORT void query_rawoffset_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when RawOffSet action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1541 of file xcal-device.c.
G_MODULE_EXPORT void query_dstoffset_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when DSTOffset action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1559 of file xcal-device.c.
G_MODULE_EXPORT void query_dstsavings_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when DSTSavings action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1577 of file xcal-device.c.
G_MODULE_EXPORT void query_usesdaylighttime_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when UsesDaylightTime action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1595 of file xcal-device.c.
gboolean getdnsconfig | ( | void | ) |
This function is used to get the DNS value from DNS mask configuration file.
Definition at line 2287 of file xcal-device.c.
gboolean gettimezone | ( | void | ) |
This function is used to get the time zone. It gets the time zone information from the device configuration.
Definition at line 2436 of file xcal-device.c.
gboolean getserialnum | ( | GString * | serial_num | ) |
This function is used to get the serial number of the device from the vendor specific file.
[out] | serial_num | Manufacturer serial number |
Definition at line 2493 of file xcal-device.c.
gboolean getruiurl | ( | ) |
This function is used to get the RUI(Remote user interface) Url. It uses xdevice.conf file to get the RUI Url. If the xdevice.conf file is not present then create the the RUI url string.
Definition at line 2942 of file xcal-device.c.
int set_content | ( | xmlDoc * | doc, |
const char * | node_name, | ||
const char * | new_value | ||
) |
This function is used to set new value to the given node from the xml file.
[in] | doc | Xml document. |
[in] | node_name | The name of the node to be updated. |
[in] | new_value | New value to be set for the node. |
Definition at line 3026 of file xcal-device.c.
char* get_content | ( | xmlDoc * | doc, |
const char * | node_name | ||
) |
This function is used to get the value of the node from the xml file.
[in] | doc | Xml document. |
[in] | node_name | Name of the node for which value has to be retrieved. |
Definition at line 3054 of file xcal-device.c.
xmlDoc* open_document | ( | const char * | file_name | ) |
Supporting function for reading the XML file.
[in] | file_name | Name of the xml file |
Definition at line 3076 of file xcal-device.c.
unsigned char updatexmldata | ( | const char * | xmlfilename, |
const char * | struuid, | ||
const char * | serialno, | ||
const char * | friendlyName | ||
) |
This function is used to update the xml node values UDN, serialNumber and friendlyName.
[in] | xmlfilename | Name of the XML file. |
[in] | struuid | Unique device Id . |
[in] | serialno | Serial number. |
[in] | friendlyName | Friendly name. |
Definition at line 3260 of file xcal-device.c.
void notify_value_change | ( | const char * | varname, |
const char * | strvalue | ||
) |
A generic function to notify all the clients whenever there is a change found in the service variable values.
[in] | varname | Node name to be notified. |
[in] | strvalue | New value to be notified. |
Definition at line 3324 of file xcal-device.c.
void notify_value_change_int | ( | const char * | varname, |
int | intvalue | ||
) |
Generic function to notify the change in the node value which are of integers type from the XML service file.
[in] | varname | Node name to be notified. |
[in] | strvalue | New value to be notified. |
Definition at line 3351 of file xcal-device.c.
gboolean getipv6prefix | ( | void | ) |
This function is used to retrieve the IPv6 prefix information from dibblers file.
Definition at line 3666 of file xcal-device.c.
gboolean getdevicename | ( | void | ) |
This function is used to get the device name from /devicename/devicename file.
Definition at line 3748 of file xcal-device.c.
|
static |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 288 of file xcal_device_library.c.
BOOL getIpv6Prefix | ( | char * | outValue | ) |
This function is used to get the IP address based on IPv6 or IPv4 is enabled.
[in] | ifname | Name of the network interface. |
[out] | ipAddressBuffer | Character buffer to hold the IP address. |
[in] | ipv6Enabled | Flag to check whether IPV6 is enabled |
Definition at line 1094 of file xcal_device_library.c.
G_MODULE_EXPORT void get_ipsubnet_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when IPSubNet action is invoked and this sets the state variable for IPSubNet.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 569 of file xcal-device-main.c.
G_MODULE_EXPORT void get_client_ip_cb | ( | GUPnPService * | service, |
GUPnPServiceAction * | action, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when getClientIP action is invoked and this sets the state variable for Client IP.
[in] | service | Name of the service. |
[out] | action | Action to be invoked. |
[in] | user_data | Usually null will be passed. |
Definition at line 901 of file xcal-device-main.c.
G_MODULE_EXPORT void query_ipsubnet_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when IPSubNet action is invoked and this sets the state variable with a new value.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1200 of file xcal-device-main.c.
G_MODULE_EXPORT void query_client_ip_cb | ( | GUPnPService * | service, |
char * | variable, | ||
GValue * | value, | ||
gpointer | user_data | ||
) |
Callback function which is invoked when ClientIP action is invoked and this sets the state variable with a new Gateway IP.
[in] | service | Name of the service. |
[in] | variable | State(Query) variable. |
[in] | value | New value to be assigned. |
[in] | user_data | Usually null will be passed. |
Definition at line 1359 of file xcal-device-main.c.