The VisAO Camera
profileutils.h
1 
2 
3 #ifndef __profileutils_h__
4 #define __profileutils_h__
5 
6 #ifdef __cplusplus
7 extern "C"
8 {
9 #endif
10 
11 
12 #include <stdint.h>
13 #include <time.h>
14 
15 #define SEQ_MSG_LEN 6
16 #define SEQ_NAME_LEN 2
17 
18 /*typedef struct
19 {
20  char data[SEQ_MSG_LEN];
21 } seqmsg;
22 */
23 typedef struct
24 {
25  char seqmsg[SEQ_MSG_LEN];
26  char seqpt[4];
27  struct timespec seqtm;
28 } seqlog;
29 
30 typedef struct
31 {
32  char app[2];
33  seqlog sl;
35 
36 int parse_seqmsg(char * app, uint32_t *seqnum, const char *sm);
37 
38 int load_seqmsg(char *sm, const char * app, uint32_t seqnum);
39 
40 #ifdef __cplusplus
41 } //extern "C"
42 #endif
43 
44 #endif //__profileutils_h__