CUBRID Engine  latest
jsp_file.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 
20 /*
21  * jsp_file.h - Functions to manage files related to Java Stored Procedure Server
22  *
23  * Note:
24  */
25 
26 #ifndef _JSP_FILE_H_
27 #define _JSP_FILE_H_
28 
29 #ident "$Id$"
30 
31 #include "porting.h"
32 #include <stdio.h>
33 
36 {
37  int pid;
38  int port;
39 };
40 
41 #ifdef __cplusplus
42 extern "C"
43 {
44 #endif
45 
46  extern bool javasp_open_info_dir ();
47  extern FILE *javasp_open_info (const char *db_name, const char *mode);
48 
49  extern bool javasp_read_info (const char *db_name, JAVASP_SERVER_INFO & info);
50  extern bool javasp_write_info (const char *db_name, JAVASP_SERVER_INFO info);
51  extern bool javasp_reset_info (const char *db_name);
52 
53  extern bool javasp_get_info_file (char *buf, size_t len, const char *db_name);
54  extern bool javasp_get_error_file (char *buf, size_t len, const char *db_name);
55  extern bool javasp_get_log_file (char *buf, size_t len, const char *db_name);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* _JSP_FILE_H_ */
bool javasp_get_error_file(char *buf, size_t len, const char *db_name)
Definition: jsp_file.c:102
bool javasp_get_info_file(char *buf, size_t len, const char *db_name)
Definition: jsp_file.c:87
bool javasp_open_info_dir()
Definition: jsp_file.c:41
bool javasp_get_log_file(char *buf, size_t len, const char *db_name)
Definition: jsp_file.c:117
static enum scanner_mode mode
bool javasp_read_info(const char *db_name, JAVASP_SERVER_INFO &info)
Definition: jsp_file.c:132
char * db_name
FILE * javasp_open_info(const char *db_name, const char *mode)
Definition: jsp_file.c:72
bool javasp_reset_info(const char *db_name)
Definition: jsp_file.c:163
bool javasp_write_info(const char *db_name, JAVASP_SERVER_INFO info)
Definition: jsp_file.c:148