#include <string.h>#include <stdio.h>#include <errno.h>#include <expat.h>#include "rtv.h"#include "rtvlib.h"#include "httpclient.h"#include "deviceinfoclient.h"Go to the source code of this file.
Defines | |
| #define | MAX_TAG_SZ (100) |
| #define | MAX_VAL_SZ (200) |
Enumerations | |
| enum | xml_fields_t { RTV_TYPE = (1<<0), RTV_NAME = (1<<1), RTV_MDESC = (1<<2), RTV_MNAME = (1<<3), RTV_MNUM = (1<<4), RTV_VER = (1<<5), RTV_SNUM = (1<<6), RTV_UDN = (1<<7), RTV_EXPECTED_FIELDS = (RTV_TYPE | RTV_NAME | RTV_MDESC | RTV_MNAME | RTV_MNUM | RTV_SNUM | RTV_UDN) } |
Functions | |
| static void XMLCALL | devinfo_xml_start (void *data, const char *el, const char **attr) |
| static void XMLCALL | devinfo_xml_end (void *data, const char *el) |
| static void XMLCALL | devinfo_xml_charhndlr (void *userData, const XML_Char *s, int len) |
| static void XMLCALL | devinfo_default_handler (void *userData, const XML_Char *s, int len) |
| static int | get_deviceinfo_callback (unsigned char *buf, size_t len, void *info) |
| static int | parse_version_info (rtv_device_info_t *devinfo) |
| int | rtv_get_device_info (const char *address, char *queryStr, rtv_device_t **device_p) |
| void | rtv_free_device_info (rtv_device_info_t *devinfo) |
| void | rtv_print_device_info (const rtv_device_info_t *devinfo) |
Variables | |
| static char | curr_tag [MAX_TAG_SZ+1] = "" |
| static char | val_buff [MAX_VAL_SZ+1] = "" |
| static XML_Parser | parser |
|
|
Definition at line 25 of file deviceinfoclient.c. Referenced by devinfo_xml_start(). |
|
|
Definition at line 26 of file deviceinfoclient.c. Referenced by devinfo_xml_charhndlr(). |
|
|
Definition at line 28 of file deviceinfoclient.c. |
|
||||||||||||||||
|
Definition at line 144 of file deviceinfoclient.c. Referenced by rtv_get_device_info(). |
|
||||||||||||||||
|
Definition at line 119 of file deviceinfoclient.c. References MAX_VAL_SZ. Referenced by rtv_get_device_info(). |
|
||||||||||||
|
Definition at line 68 of file deviceinfoclient.c. References rtv_device_info_t::deviceType, rtv_device_info_t::modelDescr, rtv_device_info_t::modelName, rtv_device_info_t::modelNumber, rtv_device_info_t::name, RTV_MDESC, RTV_MNAME, RTV_MNUM, RTV_NAME, RTV_SNUM, RTV_TYPE, RTV_UDN, RTV_VER, rtv_device_info_t::serialNum, rtv_device_info_t::status, rtv_device_info_t::udn, and rtv_device_info_t::versionStr. Referenced by rtv_get_device_info(). |
|
||||||||||||||||
|
Definition at line 49 of file deviceinfoclient.c. References MAX_TAG_SZ. Referenced by rtv_get_device_info(). |
|
||||||||||||||||
|
Definition at line 150 of file deviceinfoclient.c. References RTV_ERRLOG. Referenced by rtv_get_device_info(). |
|
|
Definition at line 166 of file deviceinfoclient.c. References rtv_device_version_t::build, rtv_device_version_t::major, rtv_device_version_t::minor, rtv_device_info_t::modelNumber, RTV_DEVICE_4K, RTV_DEVICE_5K, rtv_globals_t::rtv_emulate_mode, RTV_ERRLOG, rtv_globals, rtv_print_device_info(), rtv_device_info_t::version, rtv_device_info_t::versionStr, and rtv_device_version_t::vintage. Referenced by rtv_get_device_info(). |
|
|
Definition at line 290 of file deviceinfoclient.c. References rtv_device_info_t::deviceType, rtv_device_info_t::ipaddr, rtv_device_info_t::modelDescr, rtv_device_info_t::modelName, rtv_device_info_t::modelNumber, rtv_device_info_t::name, rtv_device_info_t::serialNum, rtv_device_info_t::udn, and rtv_device_info_t::versionStr. Referenced by rtv_free_devices(), and rtv_get_device_info(). |
|
||||||||||||||||
|
|
|
Definition at line 43 of file deviceinfoclient.c. |
|
|
Definition at line 45 of file deviceinfoclient.c. |
|
|
Definition at line 44 of file deviceinfoclient.c. |
1.4.6