AMPS C/C++ Client Class Reference AMPS C/C++ Client Version 5.3.5.6

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
54 #if defined(_WIN32) && defined(AMPS_SHARED)
55 #ifdef AMPS_BUILD
56 #define AMPSDLL __declspec(dllexport)
57 #else
58 #define AMPSDLL __declspec(dllimport)
59 #endif
60 #else
61 #define AMPSDLL
62 #endif
76 #ifdef __cplusplus
77 extern "C"
78 #endif
79 AMPSDLL void amps_uri_parse(const char* pUri_,
80 size_t uriLength_,
81 amps_uri_state* pUriState_);
82
83 #endif
84