root/src/stratcon_datastore.h

Revision a7ed2df4af73c424e86f7d049a4b2e76a629b2f2, 0.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

closes #117, this hooks the ops

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  */
5
6 #ifndef _NOIT_STRATCON_DATASTORE_H
7 #define _NOIT_STRATCON_DATASTORE_H
8
9 #include "noit_defines.h"
10 #include "eventer/eventer.h"
11 #include "utils/noit_hash.h"
12
13 #include <sys/types.h>
14 #include <sys/socket.h>
15
16 typedef enum {
17  DS_OP_INSERT = 1,
18  DS_OP_CHKPT = 2,
19  DS_OP_FIND = 3,
20  DS_OP_FIND_COMPLETE = 4
21 } stratcon_datastore_op_t;
22
23 API_EXPORT(void)
24   stratcon_datastore_push(stratcon_datastore_op_t,
25                           struct sockaddr *, void *);
26
27 API_EXPORT(void)
28   stratcon_datastore_register_onlooker(void (*f)(stratcon_datastore_op_t,
29                                                  struct sockaddr *, void *));
30
31 API_EXPORT(int)
32   stratcon_datastore_saveconfig(void *unused);
33
34 #endif
Note: See TracBrowser for help on using the browser.