-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutilFuncs.h
More file actions
52 lines (43 loc) · 1.5 KB
/
utilFuncs.h
File metadata and controls
52 lines (43 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* =====================================================================================
*
* Filename: utilFuncs.h
*
* Description: Utility Functions
*
* Version: 1.0
* Created: 06/09/2011 08:21:51 AM
* Revision: none
* Compiler: gcc
*
* Author: Pratik Sinha (freethinker), [email protected]
* Company: http://www.humbug.in/
*
* =====================================================================================
*/
#ifndef _UTILFUNCS_H
#define _UTILFUNCS_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <libxml/xmlreader.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <xmlrpc-c/base.h>
#include <xmlrpc-c/client.h>
xmlXPathObjectPtr getnodeset (xmlDocPtr doc, xmlChar *xpath, xmlNodePtr node);
xmlNodePtr getNodeByXpath (xmlDocPtr doc, xmlChar *xpath);
char *getNodeContentByXpath (xmlDocPtr doc, xmlChar *xpath);
void die_if_fault_occurred (xmlrpc_env * const envP);
int get_int(xmlrpc_env* env, xmlrpc_value* in);
int get_boolean(xmlrpc_env* env, xmlrpc_value* in);
double get_double(xmlrpc_env* env, xmlrpc_value* in);
char* get_timestamp(xmlrpc_env* env, xmlrpc_value* in);
char* get_string(xmlrpc_env* env, xmlrpc_value* in);
char* get_base64(xmlrpc_env* env, xmlrpc_value* in);
void get_array(xmlrpc_env* env, xmlrpc_value* in);
void get_struct(xmlrpc_env* env, xmlrpc_value* in);
void print_values( xmlrpc_env* env, xmlrpc_value* in );
#endif /* _UTILFUNCS_H */