SCIMBridge  0.4.x
scim-bridge-message.h
Go to the documentation of this file.
1 /*
2  * SCIM Bridge
3  *
4  * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
5  *
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation and
10  * appearing in the file LICENSE.LGPL included in the package of this file.
11  * You can also redistribute it and/or modify it under the terms of
12  * the GNU General Public License as published by the Free Software Foundation and
13  * appearing in the file LICENSE.GPL included in the package of this file.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18  */
19 
25 #ifndef SCIMBRIDGEMESSAGE_H_
26 #define SCIMBRIDGEMESSAGE_H_
27 
28 #include "scim-bridge.h"
29 
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
48  ScimBridgeMessage *scim_bridge_alloc_message (const char *header, size_t argument_count);
49 
56 
63  const char *scim_bridge_message_get_header (const ScimBridgeMessage *message);
64 
72 
80  const char *scim_bridge_message_get_argument (const ScimBridgeMessage *message, size_t index);
81 
90  retval_t scim_bridge_message_set_argument (ScimBridgeMessage *message, size_t index, const char *argument);
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 #endif /*SCIMBRIDGEMESSAGE_H_*/
void scim_bridge_free_message(ScimBridgeMessage *message)
Definition: scim-bridge-message.c:69
int retval_t
Definition: scim-bridge.h:59
size_t scim_bridge_message_get_argument_count(const ScimBridgeMessage *message)
Definition: scim-bridge-message.c:92
const char * scim_bridge_message_get_header(const ScimBridgeMessage *message)
Definition: scim-bridge-message.c:86
retval_t scim_bridge_message_set_argument(ScimBridgeMessage *message, size_t index, const char *argument)
Definition: scim-bridge-message.c:114
This header describes about fundamental definitions of scim-bridge.
Definition: scim-bridge-message.c:28
const char * scim_bridge_message_get_argument(const ScimBridgeMessage *message, size_t index)
Definition: scim-bridge-message.c:98
ScimBridgeMessage * scim_bridge_alloc_message(const char *header, size_t argument_count)
Definition: scim-bridge-message.c:38