Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
grn-test-server.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
2 /*
3  Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License version 2.1 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef __GRN_TEST_SERVER_H__
20 #define __GRN_TEST_SERVER_H__
21 
22 #include <glib-object.h>
23 
24 G_BEGIN_DECLS
25 
26 #define GRN_TEST_SERVER_ERROR (grn_test_server_error_quark())
27 
28 #define GRN_TYPE_TEST_SERVER (grn_test_server_get_type())
29 #define GRN_TEST_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GRN_TYPE_TEST_SERVER, GrnTestServer))
30 #define GRN_TEST_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GRN_TYPE_TEST_SERVER, GrnTestServerClass))
31 #define GRN_IS_TEST_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GRN_TYPE_TEST_SERVER))
32 #define GRN_IS_TEST_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GRN_TYPE_TEST_SERVER))
33 #define GRN_TEST_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GRN_TYPE_TEST_SERVER, GrnTestServerClass))
34 
37 
39 {
40  GObject object;
41 };
42 
44 {
45  GObjectClass parent_class;
46 };
47 
48 typedef enum
49 {
54 
55 GQuark grn_test_server_error_quark (void);
56 
57 GType grn_test_server_get_type (void) G_GNUC_CONST;
58 
60 
61 gboolean grn_test_server_start (GrnTestServer *server,
62  GError **error);
63 gboolean grn_test_server_stop (GrnTestServer *server,
64  GError **error);
65 
67  (GrnTestServer *server,
68  GError **error);
70  (GrnTestServer *server,
71  const gchar *path);
72 
73 const gchar *grn_test_server_get_address
74  (GrnTestServer *server);
76  (GrnTestServer *server,
77  const gchar *address);
78 
81  guint port);
82 
84  (GrnTestServer *server);
86  (GrnTestServer *server,
87  const gchar *encoding);
88 
90  (GrnTestServer *server);
92  (GrnTestServer *server);
93 
94 G_END_DECLS
95 
96 #endif