SCIMBridge 0.4.x

common/scim-bridge.h

Go to the documentation of this file.
00001 /*
00002  * SCIM Bridge
00003  *
00004  * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
00005  *
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation and 
00010  * appearing in the file LICENSE.LGPL included in the package of this file.
00011  * You can also redistribute it and/or modify it under the terms of 
00012  * the GNU General Public License as published by the Free Software Foundation and 
00013  * appearing in the file LICENSE.GPL included in the package of this file.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00018  */
00019 
00026 #ifndef SCIMBRIDE_H_
00027 #define SCIMBRIDE_H_
00028 
00029 #ifdef HAVE_CONFIG_H
00030 #include "config.h"
00031 #endif
00032 
00033 #include <sys/types.h>
00034 
00035 #ifndef SCIM_VERSION
00036 #define SCIM_VERSION "<unknown>"
00037 #endif
00038 
00042 typedef int boolean;
00043 
00044 #ifndef TRUE
00045 #define TRUE 1
00046 #endif
00047 
00048 #ifndef FALSE
00049 #define FALSE 0
00050 #endif
00051 
00052 #ifndef NULL
00053 #define NULL 0
00054 #endif
00055 
00059 typedef int retval_t;
00060 
00064 #define RETVAL_FAILED -1
00065 
00069 #define RETVAL_SUCCEEDED 0
00070 
00074 #define RETVAL_IGNORED 1
00075 #endif                                            /*SCIMBRIDE_H_*/