upscaledb  2.2.1
upscaledb_srv.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2017 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  * See the file COPYING for License information.
17  */
18 
26 #ifndef UPS_UPSCALEDB_SRV_H
27 #define UPS_UPSCALEDB_SRV_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #include <ups/upscaledb.h>
34 
46 typedef struct {
49 
52  const char *bind_addr;
53 
54  /* Path of the access log, or NULL if no log should be written
55  * - currently NOT USED! */
56  const char *access_log_path;
57 
60  const char *error_log_path;
61 
63 
67 struct ups_srv_t;
68 typedef struct ups_srv_t ups_srv_t;
69 
83 extern ups_status_t
85 
106 extern ups_status_t
107 ups_srv_add_env(ups_srv_t *srv, ups_env_t *env, const char *urlname);
108 
120 extern ups_status_t
122 
123 /*
124  * Release memory and clean up
125  *
126  * @param srv A valid ups_srv_t handle
127  *
128  * @warning
129  * This function will not close open handles (i.e. of Databases, Cursors
130  * or Txns). The caller has to close the remaining Environment
131  * handles (@see ups_env_close).
132  */
133 extern void
135 
141 #ifdef __cplusplus
142 } // extern "C"
143 #endif
144 
145 #endif /* UPS_UPSCALEDB_SRV_H */
struct ups_srv_t ups_srv_t
Definition: upscaledb_srv.h:68
ups_status_t ups_srv_add_env(ups_srv_t *srv, ups_env_t *env, const char *urlname)
unsigned short uint16_t
Definition: msstdint.h:84
Include file for upscaledb embedded database.
const char * error_log_path
Definition: upscaledb_srv.h:60
ups_status_t ups_srv_remove_env(ups_srv_t *srv, ups_env_t *env)
ups_status_t ups_srv_init(ups_srv_config_t *config, ups_srv_t **srv)
const char * access_log_path
Definition: upscaledb_srv.h:56
const char * bind_addr
Definition: upscaledb_srv.h:52
void ups_srv_close(ups_srv_t *srv)
int ups_status_t
Definition: types.h:139
struct ups_env_t ups_env_t
Definition: upscaledb.h:165