litestomp
stomp_status.h
Go to the documentation of this file.
1 
16 #ifndef STOMP_ERROR_H
17 #define STOMP_ERROR_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include <stdlib.h>
24 #include <stdint.h>
25 #include <stdio.h>
26 #include <stdarg.h>
27 
28 /*
29  * Valid status codes
30  */
31 typedef enum stomp_status_code_t_ {
35 
39 typedef struct stomp_status_t_ {
40  stomp_status_code_t code;
41  char *message;
43 
44 
52 void stomp_status_set(stomp_status_t *status, stomp_status_code_t code,
53  const char *message, ...);
54 
60 
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* STOMP_ERROR_H */
72 
void stomp_status_set(stomp_status_t *status, stomp_status_code_t code, const char *message,...)
Definition: stomp_status.c:18
struct stomp_status_t_ stomp_status_t
Definition: stomp_status.h:39
void stomp_status_reset(stomp_status_t *status)
Definition: stomp_status.c:36
void stomp_status_success(stomp_status_t *status)
Definition: stomp_status.c:41
stomp_status_code_t_
Definition: stomp_status.h:31
char * message
Definition: stomp_status.h:41
stomp_status_code_t code
Definition: stomp_status.h:40
enum stomp_status_code_t_ stomp_status_code_t
Definition: stomp_status.h:32
Definition: stomp_status.h:33