root/src/stratcon_datastore.h

Revision dcd539d74168658a6f7fae5302239f74553717bb, 0.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

implements stratcon configuration storage in DB, refs #27

  • 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 } stratcon_datastore_op_t;
20
21 API_EXPORT(void)
22   stratcon_datastore_push(stratcon_datastore_op_t,
23                           struct sockaddr *, void *);
24
25 API_EXPORT(int)
26   stratcon_datastore_saveconfig(void *unused);
27
28 #endif
Note: See TracBrowser for help on using the browser.