hamsterdb Embedded Database
2.1.7
Main Page
Modules
Namespaces
Data Structures
Files
File List
Globals
include
ham
hamsterdb_srv.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2005-2014 Christoph Rupp (chris@crupp.de).
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef HAM_HAMSTERDB_SRV_H__
18
#define HAM_HAMSTERDB_SRV_H__
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
#include <
ham/hamsterdb.h
>
25
37
typedef
struct
{
39
ham_u16_t
port
;
40
41
/* Path of the access log, or NULL if no log should be written
42
* - currently NOT USED! */
43
const
char
*
access_log_path
;
44
47
const
char
*
error_log_path
;
48
49
}
ham_srv_config_t
;
50
54
struct
ham_srv_t
;
55
typedef
struct
ham_srv_t
ham_srv_t
;
56
70
extern
ham_status_t
71
ham_srv_init
(
ham_srv_config_t
*config,
ham_srv_t
**srv);
72
93
extern
ham_status_t
94
ham_srv_add_env
(
ham_srv_t
*srv,
ham_env_t
*env,
const
char
*urlname);
95
96
/*
97
* Release memory and clean up
98
*
99
* @param srv A valid ham_srv_t handle
100
*
101
* @warning
102
* This function will not close open handles (i.e. of Databases, Cursors
103
* or Transactions). The caller has to close the remaining Environment
104
* handles (@see ham_env_close).
105
*/
106
extern
void
107
ham_srv_close
(
ham_srv_t
*srv);
108
114
#ifdef __cplusplus
115
}
// extern "C"
116
#endif
117
118
#endif
/* HAM_HAMSTERDB_SRV_H__ */
Generated by
1.8.4