53 extern ithread_mutex_t display_mutex;
77 char *SampleUtil_GetElementValue(IN
IXML_Element *element);
109 char *SampleUtil_GetFirstDocumentItem(IN
IXML_Document *doc, IN
const char *item);
125 char *SampleUtil_GetFirstElementItem(IN
IXML_Element *element, IN
const char *item);
137 void SampleUtil_PrintEventType(IN Upnp_EventType S);
150 int SampleUtil_PrintEvent(IN Upnp_EventType EventType,
171 int SampleUtil_FindAndParseService (
173 IN
const char* location,
174 IN
char *serviceType,
175 OUT
char **serviceId,
177 OUT
char **controlURL);
192 typedef void (*print_string)(
const char *string);
195 extern print_string gPrintFun;
209 typedef void (*state_update)(
211 const char *varValue,
216 extern state_update gStateUpdateFun;
229 int SampleUtil_Initialize(print_string print_function);
240 int SampleUtil_Finish();
254 int SampleUtil_Print(
char *fmt, ...);
264 int SampleUtil_RegisterUpdateFunction(state_update update_function);
274 void SampleUtil_StateUpdate(
276 const char *varValue,
286 #define snprintf _snprintf
287 #define strcasecmp stricmp