|
Revision 24eac7c456bb2802cf4a695e79f812cc3a0b4b0c, 0.9 kB
(checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)
|
variety of stuff. fixing some bugs and adding checks into the data model, refs #122
|
- 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 |
/* Private'ish... called from IEP to populate IEP */ |
|---|
| 35 |
API_EXPORT(void) |
|---|
| 36 |
stratcon_datastore_iep_check_preload(); |
|---|
| 37 |
|
|---|
| 38 |
#endif |
|---|