litestomp
stomp_ex_properties.h
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 
7 /*
8  * File: stomp_ex_properties.h
9  * Author: opiske
10  *
11  * Created on June 16, 2016, 4:23 PM
12  */
13 
14 #ifndef STOMP_EX_PROPERTIES_H
15 #define STOMP_EX_PROPERTIES_H
16 
17 #if defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
18 #include <apr-1.0/apr_hash.h>
19 #include <apr-1.0/apr_time.h>
20 #else
21 #include <apr-1/apr_hash.h>
22 #include <apr-1/apr_time.h>
23 #endif // defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
24 
25 
26 
27 #include <inttypes.h>
28 #include <stdint.h>
29 #include <stdio.h>
30 
31 #include "stomp_status.h"
32 
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif
37 
38 #define STOMP_CREATION_TIME "creation"
39 
40 typedef apr_hash_t stomp_hash_t;
41 
50 {
51  stomp_hash_t *hash;
53 
54 
62  const char *name, const char *value);
63 
64 
71 const char *stomp_exchange_get(stomp_exchange_properties_t *properties,
72  const char *name);
73 
74 
80 
81 
88  stomp_status_t *stat);
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* STOMP_EX_PROPERTIES_H */
95 
apr_hash_t stomp_hash_t
Definition: stomp_ex_properties.h:40
void stomp_exchange_add(stomp_exchange_properties_t *properties, const char *name, const char *value)
Definition: stomp_ex_properties.c:20
stomp_hash_t * hash
Definition: stomp_ex_properties.h:51
Definition: stomp_status.h:39
void stomp_exchange_clear(stomp_exchange_properties_t *properties)
Definition: stomp_ex_properties.c:34
stomp_status_code_t stomp_exchange_util_ctime(stomp_exchange_properties_t *properties, stomp_status_t *stat)
Definition: stomp_ex_properties.c:40
Definition: stomp_ex_properties.h:49
const char * stomp_exchange_get(stomp_exchange_properties_t *properties, const char *name)
Definition: stomp_ex_properties.c:27
enum stomp_status_code_t_ stomp_status_code_t
struct stomp_exchange_properties_t_ stomp_exchange_properties_t