AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.3.0
ampsuri.h
1 
25 #ifndef _AMPS_AMPSURI_H_
26 #define _AMPS_AMPSURI_H_
27 #include <stdlib.h>
28 typedef enum
29 {
30  AMPS_URI_START,
31  AMPS_URI_TRANSPORT,
32  AMPS_URI_USER,
33  AMPS_URI_PASSWORD,
34  AMPS_URI_HOST,
35  AMPS_URI_PORT,
36  AMPS_URI_PROTOCOL,
37  AMPS_URI_MESSAGE_TYPE,
38  AMPS_URI_OPTION_KEY,
39  AMPS_URI_OPTION_VALUE,
40  AMPS_URI_ERROR,
41  AMPS_URI_END
42 } amps_uri_part;
43 
44 /*
45 */
46 
47 typedef struct
48 {
49  const char* part;
50  size_t part_length;
51  amps_uri_part part_id;
52 } amps_uri_state;
53 
67 #ifdef __cplusplus
68 extern "C"
69 #endif
70 void amps_uri_parse(const char* pUri_,
71  size_t uriLength_,
72  amps_uri_state* pUriState_);
73 
74 #endif
75