CUBRID Engine  latest
query_method.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  * External definitions for method calls in queries
22  */
23 
24 #ifndef _QUERY_METHOD_H_
25 #define _QUERY_METHOD_H_
26 
27 #ident "$Id$"
28 #include "dbtype_def.h"
29 
30 // forward def
31 struct method_sig_list;
32 struct qfile_list_id;
33 
34 #define VACOMM_BUFFER_SIZE 4096
35 
38 {
39  char *host; /* server machine name */
40  char *server_name; /* server name */
41  int rc; /* trans request ID */
42  int num_vals; /* number of values */
43  char *area; /* buffer + header */
44  char *buffer; /* buffer */
45  int cur_pos; /* current position */
46  int size; /* size of buffer */
47  int action; /* client action */
48 };
49 
50 extern int method_send_error_to_server (unsigned int rc, char *host, char *server_name);
51 
52 extern int method_invoke_for_server (unsigned int rc, char *host, char *server_name, qfile_list_id * list_id,
54 
55 void method_sig_list_freemem (method_sig_list * meth_sig_list);
56 
57 #endif /* _QUERY_METHOD_H_ */
void method_sig_list_freemem(method_sig_list *meth_sig_list)
Definition: query_method.c:526
int method_send_error_to_server(unsigned int rc, char *host, char *server_name)
Definition: query_method.c:241
char * server_name
Definition: query_method.h:40
int method_invoke_for_server(unsigned int rc, char *host, char *server_name, qfile_list_id *list_id, method_sig_list *method_sig_list)
Definition: query_method.c:271