Back to index

im-sdk  12.3.91
xaux_so_sampleja4.c
Go to the documentation of this file.
00001 /*
00002 Copyright 1990-2003 Sun Microsystems, Inc. All Rights Reserved.
00003 
00004 Permission is hereby granted, free of charge, to any person obtaining a
00005 copy of this software and associated documentation files (the
00006 "Software"), to deal in the Software without restriction, including
00007 without limitation the rights to use, copy, modify, merge, publish,
00008 distribute, sublicense, and/or sell copies of the Software, and to
00009 permit persons to whom the Software is furnished to do so, subject to
00010 the following conditions: The above copyright notice and this
00011 permission notice shall be included in all copies or substantial
00012 portions of the Software.
00013 
00014 
00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00016 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00017 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00018 IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
00019 FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
00020 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
00021 THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
00022 ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
00023 
00024 
00025 Except as contained in this notice, the names of The Open Group and/or
00026 Sun Microsystems, Inc. shall not be used in advertising or otherwise to
00027 promote the sale, use or other dealings in this Software without prior
00028 written authorization from The Open Group and/or Sun Microsystems,
00029 Inc., as applicable.
00030 
00031 
00032 X Window System is a trademark of The Open Group
00033 
00034 OSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF
00035 logo, LBX, X Window System, and Xinerama are trademarks of the Open
00036 Group. All other trademarks and registered trademarks mentioned herein
00037 are the property of their respective owners. No right, title or
00038 interest in or to any trademark, service mark, logo or trade name of
00039 Sun Microsystems, Inc. or its licensors is granted.
00040 
00041 */
00042 
00043 #pragma ident "$Id$"
00044 
00045 #define              IM_AUX_CLASS_MAX     11
00046 
00047 #include <sys/types.h>
00048 #include <X11/Xlib.h>
00049 #include <X11/Xatom.h>
00050 #include "iiimpAux.h"
00051 #include "xaux_common.h"
00052 #include "xaux_so_common.h"
00053 
00054 extern aux_method_t xaux_so_methods;
00055 
00056 static const CARD16  im_aux_utfname_palette[] = {
00057                      'c','o','m','.',
00058                      's','u','n','.',
00059                      's','a','m','p','l','e','j','a','4','.',
00060                      'P','a','l','e','t','t','e','A','u','x',
00061 };
00062 static const CARD16  im_aux_utfname_systemline[] = {
00063                      'c','o','m','.',
00064                      's','u','n','.',
00065                      's','a','m','p','l','e','j','a','4','.',
00066                      'S','y','s','t','e','m','L','i','n','e','A','u','x',
00067 };
00068 static const CARD16  im_aux_utfname_regword[] = {
00069                      'c','o','m','.',
00070                      's','u','n','.',
00071                      's','a','m','p','l','e','j','a','4','.',
00072                      'R','e','g','W','o','r','d','A','u','x',
00073 };
00074 static const CARD16  im_aux_utfname_property[] = {
00075                      'c','o','m','.',
00076                      's','u','n','.',
00077                      's','a','m','p','l','e','j','a','4','.',
00078                      'P','r','o','p','e','r','t','y','A','u','x',
00079 };
00080 static const CARD16  im_aux_utfname_dicut[] = {
00081                      'c','o','m','.',
00082                      's','u','n','.',
00083                      's','a','m','p','l','e','j','a','4','.',
00084                      'D','i','c','U','T','A','u','x',
00085 };
00086 static const CARD16  im_aux_utfname_help[] = {
00087                      'c','o','m','.',
00088                      's','u','n','.',
00089                      's','a','m','p','l','e','j','a','4','.',
00090                      'H','e','l','p','A','u','x',
00091 };
00092 static const CARD16  im_aux_utfname_error[] = {
00093                      'c','o','m','.',
00094                      's','u','n','.',
00095                      's','a','m','p','l','e','j','a','4','.',
00096                      'W','a','r','n','i','n','g','M','s','g','A','u','x',
00097 };
00098 static const CARD16  im_aux_utfname_charpalette[] = {
00099                      'c','o','m','.',
00100                      's','u','n','.',
00101                      's','a','m','p','l','e','j','a','4','.',
00102                      'C','h','a','r','P','a','l','e','t','t','e','A','u','x',
00103 };
00104 static const CARD16  im_aux_utfname_customizer[] = {
00105                      'c','o','m','.',
00106                      's','u','n','.',
00107                      's','a','m','p','l','e','j','a','4','.',
00108                      'C','u','s','t','o','m','i','z','e','r','A','u','x',
00109 };
00110 static const CARD16  im_aux_utfname_lookup[] = {
00111                      'c','o','m','.',
00112                      's','u','n','.',
00113                      's','a','m','p','l','e','j','a','4','.',
00114                      'L','o','o','k','u','p','A','u','x',
00115 };
00116 
00117 static const CARD16  im_aux_utfname_versionquery[] = {
00118                      'c','o','m','.',
00119                      's','u','n','.',
00120                      's','a','m','p','l','e','j','a','4','.',
00121                      'V','e','r','s','i','o','n','Q','u','e','r','y','A','u','x',
00122 };
00123 
00124 xaux_so_class_t xaux_classes[IM_AUX_CLASS_MAX + 1] = {
00125        {
00126               NULL,
00127               "com.sun.sampleja4.PaletteAux", NULL, 1,
00128               "PaletteAux",
00129               (Window)0, (Window)0,
00130               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00131               NULL, NULL, NULL,
00132               im_aux_utfname_palette,
00133               Initial, False, NULL,
00134        },
00135        {
00136               NULL,
00137               "com.sun.sampleja4.SystemLineAux", NULL, 2,
00138               "SystemLineAux",
00139               (Window)0, (Window)0,
00140               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00141               NULL, NULL, NULL,
00142               im_aux_utfname_systemline,
00143               Initial, False, NULL,
00144        },
00145        {
00146               NULL,
00147               "com.sun.sampleja4.RegWordAux", NULL, 3,
00148               "RegWordAux",
00149               (Window)0, (Window)0,
00150               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00151               NULL, NULL, NULL,
00152               im_aux_utfname_regword,
00153               Initial, False, NULL,
00154        },
00155        {
00156               NULL,
00157               "com.sun.sampleja4.PropertyAux", NULL, 4,
00158               "PropertyAux",
00159               (Window)0, (Window)0,
00160               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00161               NULL, NULL, NULL,
00162               im_aux_utfname_property,
00163               Initial, False, NULL,
00164        },
00165        {
00166               NULL,
00167               "com.sun.sampleja4.DicUTAux", NULL, 5,
00168               "DicUTAux",
00169               (Window)0, (Window)0,
00170               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00171               NULL, NULL, NULL,
00172               im_aux_utfname_dicut,
00173               Initial, False, NULL,
00174        },
00175        {
00176               NULL,
00177               "com.sun.sampleja4.HelpAux", NULL, 6,
00178               "HelpAux",
00179               (Window)0, (Window)0,
00180               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00181               NULL, NULL, NULL,
00182               im_aux_utfname_help,
00183               Initial, False, NULL,
00184        },
00185        {
00186               NULL,
00187               "com.sun.sampleja4.WarningMsgAux", NULL, 7,
00188               "WarningMsgAux",
00189               (Window)0, (Window)0,
00190               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00191               NULL, NULL, NULL,
00192               im_aux_utfname_error,
00193               Initial, False, NULL,
00194        },
00195        {
00196               NULL,
00197               "com.sun.sampleja4.CharPaletteAux", NULL, 8,
00198               "CharPaletteAux",
00199               (Window)0, (Window)0,
00200               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00201               NULL, NULL, NULL,
00202               im_aux_utfname_charpalette,
00203               Initial, False, NULL,
00204        },
00205        {
00206               NULL,
00207               "com.sun.sampleja4.CustomizerAux", NULL, 9,
00208               "CustomizerAux",
00209               (Window)0, (Window)0,
00210               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00211               NULL, NULL, NULL,
00212               im_aux_utfname_customizer,
00213               Initial, False, NULL,
00214        },
00215        {
00216               NULL,
00217               "com.sun.sampleja4.LookupAux", NULL, 10,
00218               "LookupAux",
00219               (Window)0, (Window)0,
00220               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00221               NULL, NULL, NULL,
00222               im_aux_utfname_lookup,
00223               Initial, False, NULL,
00224        },
00225        {
00226               NULL,
00227               "com.sun.sampleja4.VersionQueryAux", NULL, 0,
00228               NULL,
00229               (Window)0, (Window)0,
00230               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00231               NULL, NULL, NULL,
00232               im_aux_utfname_versionquery,
00233               Initial, False, NULL,
00234        },
00235        {
00236               NULL,
00237               NULL, NULL, -1,
00238               NULL,
00239               (Window)0, (Window)0,
00240               (Atom)0, (Atom)0, (Atom)0, (Atom)0, (Atom)0,
00241               NULL, NULL, NULL,
00242               NULL,
00243               Initial, False, NULL,
00244        }
00245 };
00246 
00247 aux_dir_t aux_dir[IM_AUX_CLASS_MAX + 1] = {
00248        {
00249               {
00250                      sizeof (im_aux_utfname_palette),
00251                      (CARD16 *)im_aux_utfname_palette,
00252               },
00253               &xaux_so_methods,
00254        },
00255        {
00256               {
00257                      sizeof (im_aux_utfname_systemline),
00258                      (CARD16 *)im_aux_utfname_systemline,
00259               },
00260               &xaux_so_methods,
00261        },
00262        {
00263               {
00264                      sizeof (im_aux_utfname_regword),
00265                      (CARD16 *)im_aux_utfname_regword,
00266               },
00267               &xaux_so_methods,
00268        },
00269        {
00270               {
00271                      sizeof (im_aux_utfname_property),
00272                      (CARD16 *)im_aux_utfname_property,
00273               },
00274               &xaux_so_methods,
00275        },
00276        {
00277               {
00278                      sizeof (im_aux_utfname_dicut),
00279                      (CARD16 *)im_aux_utfname_dicut,
00280               },
00281               &xaux_so_methods,
00282        },
00283        {
00284               {
00285                      sizeof (im_aux_utfname_help),
00286                      (CARD16 *)im_aux_utfname_help,
00287               },
00288               &xaux_so_methods,
00289        },
00290        {
00291               {
00292                      sizeof (im_aux_utfname_error),
00293                      (CARD16 *)im_aux_utfname_error,
00294               },
00295               &xaux_so_methods,
00296        },
00297        {
00298               {
00299                      sizeof (im_aux_utfname_charpalette),
00300                      (CARD16 *)im_aux_utfname_charpalette,
00301               },
00302               &xaux_so_methods,
00303        },
00304        {
00305               {
00306                      sizeof (im_aux_utfname_customizer),
00307                      (CARD16 *)im_aux_utfname_customizer,
00308               },
00309               &xaux_so_methods,
00310        },
00311        {
00312               {
00313                      sizeof (im_aux_utfname_lookup),
00314                      (CARD16 *)im_aux_utfname_lookup,
00315               },
00316               &xaux_so_methods,
00317        },
00318        {
00319               {
00320                      sizeof (im_aux_utfname_versionquery),
00321                      (CARD16 *)im_aux_utfname_versionquery,
00322               },
00323               &VersionQueryAux_methods,
00324        },
00325        {0, NULL, NULL}
00326 };
00327 
00328 /*
00329  * default version (major, minor) of external modules
00330  */
00331 const int xaux_so_default_extversion[2] = { 1, 0 };
00332 const int xaux_so_setvalue_id_sendversion = 333;
00333 
00334 /*
00335  * primary path for external executables
00336  */
00337 const char *xaux_so_extexec_path = "/usr/lib/iiim/le/sampleja4/xaux";