Groonga 3.0.9 Source Code Document
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
groonga
test
unit
lib
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
35
typedef
struct
_GrnTestServer
GrnTestServer
;
36
typedef
struct
_GrnTestServerClass
GrnTestServerClass
;
37
38
struct
_GrnTestServer
39
{
40
GObject
object
;
41
};
42
43
struct
_GrnTestServerClass
44
{
45
GObjectClass
parent_class
;
46
};
47
48
typedef
enum
49
{
50
GRN_TEST_SERVER_ERROR_IO
,
51
GRN_TEST_SERVER_ERROR_ALREADY_STARTED
,
52
GRN_TEST_SERVER_ERROR_NOT_STARTED
53
}
GrnTestServerError
;
54
55
GQuark
grn_test_server_error_quark
(
void
);
56
57
GType
grn_test_server_get_type
(
void
) G_GNUC_CONST;
58
59
GrnTestServer
*
grn_test_server_new
(
void
);
60
61
gboolean
grn_test_server_start
(
GrnTestServer
*server,
62
GError **
error
);
63
gboolean
grn_test_server_stop
(
GrnTestServer
*server,
64
GError **error);
65
66
const gchar *
grn_test_server_get_database_path
67
(
GrnTestServer
*server,
68
GError **error);
69
void
grn_test_server_set_database_path
70
(
GrnTestServer
*server,
71
const gchar *path);
72
73
const gchar *
grn_test_server_get_address
74
(
GrnTestServer
*server);
75
void
grn_test_server_set_address
76
(
GrnTestServer
*server,
77
const gchar *address);
78
79
guint
grn_test_server_get_port
(
GrnTestServer
*server);
80
void
grn_test_server_set_port
(
GrnTestServer
*server,
81
guint port);
82
83
const gchar *
grn_test_server_get_encoding
84
(
GrnTestServer
*server);
85
void
grn_test_server_set_encoding
86
(
GrnTestServer
*server,
87
const gchar *encoding);
88
89
const gchar *
grn_test_server_get_http_uri_base
90
(
GrnTestServer
*server);
91
const gchar *
grn_test_server_get_memcached_address
92
(
GrnTestServer
*server);
93
94
G_END_DECLS
95
96
#endif
Generated on Sun Nov 10 2013 09:49:05 for Groonga 3.0.9 Source Code Document by
1.8.1.2