upscaledb  2.1.13
upscaledb_srv.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2016 Christoph Rupp (chris@crupp.de).
3  * All Rights Reserved.
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * See the file COPYING for License information.
16  */
17 
25 #ifndef UPS_UPSCALEDB_SRV_H
26 #define UPS_UPSCALEDB_SRV_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #include <ups/upscaledb.h>
33 
45 typedef struct {
48 
49  /* Path of the access log, or NULL if no log should be written
50  * - currently NOT USED! */
51  const char *access_log_path;
52 
55  const char *error_log_path;
56 
58 
62 struct ups_srv_t;
63 typedef struct ups_srv_t ups_srv_t;
64 
78 extern ups_status_t
80 
101 extern ups_status_t
102 ups_srv_add_env(ups_srv_t *srv, ups_env_t *env, const char *urlname);
103 
104 /*
105  * Release memory and clean up
106  *
107  * @param srv A valid ups_srv_t handle
108  *
109  * @warning
110  * This function will not close open handles (i.e. of Databases, Cursors
111  * or Transactions). The caller has to close the remaining Environment
112  * handles (@see ups_env_close).
113  */
114 extern void
116 
122 #ifdef __cplusplus
123 } // extern "C"
124 #endif
125 
126 #endif /* UPS_UPSCALEDB_SRV_H */
struct ups_srv_t ups_srv_t
Definition: upscaledb_srv.h:63
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:55
ups_status_t ups_srv_init(ups_srv_config_t *config, ups_srv_t **srv)
const char * access_log_path
Definition: upscaledb_srv.h:51
void ups_srv_close(ups_srv_t *srv)
int ups_status_t
Definition: types.h:138
struct ups_env_t ups_env_t
Definition: upscaledb.h:163