-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdafka_store_writer.h
38 lines (28 loc) · 1 KB
/
dafka_store_writer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* =========================================================================
dafka_store_writer -
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of CZMQ, the high-level C binding for 0MQ:
http://czmq.zeromq.org.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
=========================================================================
*/
#ifndef DAFAK_STORE_WRITER_H_INCLUDED
#define DAFAK_STORE_WRITER_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
const char* address;
leveldb_t *db;
zconfig_t *config;
} dafka_store_writer_args_t;
typedef struct _dafka_store_writer_t dafka_store_writer_t;
// Create new dafka_store_writer actor instance.
DAFKA_EXPORT void
dafka_store_writer_actor (zsock_t *pipe, dafka_store_writer_args_t *args);
#ifdef __cplusplus
}
#endif
#endif