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_*/
RETVAL_FAILED
#define RETVAL_FAILED
Definition: scim-bridge.h:64
scim_bridge_free_message
void scim_bridge_free_message(ScimBridgeMessage *message)
Definition: scim-bridge-message.c:69
scim-bridge.h
This header describes about fundamental definitions of scim-bridge.
RETVAL_SUCCEEDED
#define RETVAL_SUCCEEDED
Definition: scim-bridge.h:69
scim_bridge_alloc_message
ScimBridgeMessage * scim_bridge_alloc_message(const char *header, size_t argument_count)
Definition: scim-bridge-message.c:38
scim-bridge-output.h
This header is used for print out error messages.
scim_bridge_message_get_header
const char * scim_bridge_message_get_header(const ScimBridgeMessage *message)
Definition: scim-bridge-message.c:86
scim-bridge-message.h
This header describes abut the data type of messages.
scim_bridge_message_get_argument
const char * scim_bridge_message_get_argument(const ScimBridgeMessage *message, size_t index)
Definition: scim-bridge-message.c:98
scim_bridge_perrorln
void scim_bridge_perrorln(const char *format,...)
Definition: scim-bridge-agent-output.cpp:103
scim_bridge_message_get_argument_count
size_t scim_bridge_message_get_argument_count(const ScimBridgeMessage *message)
Definition: scim-bridge-message.c:92
_ScimBridgeMessage
Definition: scim-bridge-message.c:29
scim_bridge_message_set_argument
retval_t scim_bridge_message_set_argument(ScimBridgeMessage *message, size_t index, const char *argument)
Definition: scim-bridge-message.c:114
retval_t
int retval_t
Definition: scim-bridge.h:59