Back to index

im-sdk  12.3.91
im-misc.c
Go to the documentation of this file.
00001 #include <iiimp-data.h>
00002 
00003 #include "iiimp-dataP.h"
00004 
00005 
00006 IIIMP_status
00007 iiimp_simple_create(
00008     IIIMP_data_s *   data_s,
00009     IIIMP_message ** ptr_ret,
00010     IIIMP_card7             opcode,
00011     IIIMP_card16     im_id,
00012     IIIMP_card16     ic_id)
00013 {
00014     *ptr_ret = iiimp_simple_new(data_s, opcode, im_id, ic_id);
00015     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00016 }
00017 
00018 
00019 IIIMP_status
00020 iiimp_connect_create(
00021     IIIMP_data_s *   data_s,
00022     IIIMP_message ** ptr_ret,
00023     IIIMP_string *   user_name,
00024     IIIMP_string *   auth)
00025 {
00026     *ptr_ret = iiimp_connect_new(data_s, user_name, auth);
00027     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00028 }
00029 
00030 
00031 IIIMP_status
00032 iiimp_connect_reply_create(
00033     IIIMP_data_s *   data_s,
00034     IIIMP_message ** ptr_ret,
00035     IIIMP_card16     im_id,
00036     IIIMP_string *   language_list)
00037 {
00038     *ptr_ret = iiimp_connect_reply_new(data_s, im_id, language_list);
00039     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00040 }
00041 
00042 
00043 IIIMP_status
00044 iiimp_register_trigger_keys_create(
00045     IIIMP_data_s *          data_s,
00046     IIIMP_message **        ptr_ret,
00047     IIIMP_card16            im_id,
00048     IIIMP_keyevent_list *   trigger_on,
00049     IIIMP_keyevent_list *   trigger_off)
00050 {
00051     *ptr_ret = iiimp_register_trigger_keys_new(data_s, im_id,
00052                                           trigger_on, trigger_off);
00053     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00054 }
00055 
00056 
00057 IIIMP_status
00058 iiimp_trigger_notify_create(
00059     IIIMP_data_s *   data_s,
00060     IIIMP_message ** ptr_ret,
00061     IIIMP_card16     im_id,
00062     IIIMP_card16     ic_id,
00063     IIIMP_card16     flag)
00064 {
00065     *ptr_ret = iiimp_trigger_notify_new(data_s, im_id, ic_id, flag);
00066     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00067 }
00068 
00069 IIIMP_status
00070 iiimp_register_hotkeys_create(
00071     IIIMP_data_s *          data_s,
00072     IIIMP_message **        ptr_ret,
00073     IIIMP_card16            im_id,
00074     IIIMP_card16            scope_and_profile_id,
00075     HOTKEY_LIST *                    hotkeys)
00076 {
00077     *ptr_ret = iiimp_register_hotkeys_new(data_s, im_id, scope_and_profile_id, hotkeys);
00078     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00079 }
00080 
00081 
00082 IIIMP_status
00083 iiimp_hotkey_notify_create(
00084     IIIMP_data_s *   data_s,
00085     IIIMP_message ** ptr_ret,
00086     IIIMP_card16     im_id,
00087     IIIMP_card16     ic_id,
00088     IIIMP_card16     hotkey_id,
00089     IIIMP_card16     index)
00090 {
00091     *ptr_ret = iiimp_hotkey_notify_new(data_s, im_id, ic_id, hotkey_id, index);
00092     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00093 }
00094 
00095 
00096 IIIMP_status
00097 iiimp_setimvalues_create(
00098     IIIMP_data_s *   data_s,
00099     IIIMP_message ** ptr_ret,
00100     IIIMP_card16     im_id,
00101     IIIMP_imattribute *     attr_list)
00102 {
00103     *ptr_ret = iiimp_setimvalues_new(data_s, im_id, attr_list);
00104     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00105 }
00106 
00107 
00108 IIIMP_status
00109 iiimp_getimvalues_create(
00110     IIIMP_data_s *   data_s,
00111     IIIMP_message ** ptr_ret,
00112     IIIMP_card16     im_id,
00113     IIIMP_card16_list *     attr_list)
00114 {
00115     *ptr_ret = iiimp_getimvalues_new(data_s, im_id, attr_list);
00116     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00117 }
00118 
00119 
00120 IIIMP_status
00121 iiimp_getimvalues_reply_create(
00122     IIIMP_data_s *   data_s,
00123     IIIMP_message ** ptr_ret,
00124     IIIMP_card16     im_id,
00125     IIIMP_imattribute *     attr_list)
00126 {
00127     *ptr_ret = iiimp_getimvalues_reply_new(data_s, im_id, attr_list);
00128     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00129 }
00130 
00131 
00132 IIIMP_status
00133 iiimp_forward_event_create(
00134     IIIMP_data_s *   data_s,
00135     IIIMP_message ** ptr_ret,
00136     IIIMP_card16     im_id,
00137     IIIMP_card16     ic_id,
00138     IIIMP_contents * contents)
00139 {
00140     *ptr_ret = iiimp_forward_event_new(data_s, im_id, ic_id, contents);
00141     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00142 }
00143 
00144 
00145 IIIMP_status
00146 iiimp_commit_string_create(
00147     IIIMP_data_s *   data_s,
00148     IIIMP_message ** ptr_ret,
00149     IIIMP_card16     im_id,
00150     IIIMP_card16     ic_id,
00151     IIIMP_contents * contents)
00152 {
00153     *ptr_ret = iiimp_commit_string_new(data_s, im_id, ic_id, contents);
00154     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00155 }
00156 
00157 
00158 IIIMP_status
00159 iiimp_forward_event_with_operations_create(
00160     IIIMP_data_s *   data_s,
00161     IIIMP_message ** ptr_ret,
00162     IIIMP_card16     im_id,
00163     IIIMP_card16     ic_id,
00164     IIIMP_contents * contents,
00165     IIIMP_operation *       operation)
00166 {
00167     *ptr_ret = iiimp_forward_event_with_operations_new(data_s, im_id, ic_id,
00168                                                  contents, operation);
00169     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00170 }
00171 
00172 
00173 IIIMP_status
00174 iiimp_forward_event_with_operations_reply_create(
00175     IIIMP_data_s *   data_s,
00176     IIIMP_message ** ptr_ret,
00177     IIIMP_card16     im_id,
00178     IIIMP_card16     ic_id,
00179     IIIMP_operation *       operation)
00180 {
00181     *ptr_ret = iiimp_forward_event_with_operations_reply_new(data_s,
00182                                                       im_id, ic_id,
00183                                                       operation);
00184     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00185 }
00186 
00187 
00188 IIIMP_status
00189 iiimp_createic_create(
00190     IIIMP_data_s *   data_s,
00191     IIIMP_message ** ptr_ret,
00192     IIIMP_card16     im_id,
00193     IIIMP_icattribute *     attr_list)
00194 {
00195     *ptr_ret = iiimp_createic_new(data_s, im_id, attr_list);
00196     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00197 }
00198 
00199 
00200 IIIMP_status
00201 iiimp_seticvalues_create(
00202     IIIMP_data_s *   data_s,
00203     IIIMP_message ** ptr_ret,
00204     IIIMP_card16     im_id,
00205     IIIMP_card16     ic_id,
00206     IIIMP_icattribute *     attr_list)
00207 {
00208     *ptr_ret = iiimp_seticvalues_new(data_s, im_id, ic_id, attr_list);
00209     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00210 }
00211 
00212 
00213 IIIMP_status
00214 iiimp_geticvalues_create(
00215     IIIMP_data_s *   data_s,
00216     IIIMP_message ** ptr_ret,
00217     IIIMP_card16     im_id,
00218     IIIMP_card16     ic_id,
00219     IIIMP_card16_list *     attr_list)
00220 {
00221     *ptr_ret = iiimp_geticvalues_new(data_s, im_id, ic_id, attr_list);
00222     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00223 }
00224 
00225 
00226 IIIMP_status
00227 iiimp_geticvalues_reply_create(
00228     IIIMP_data_s *   data_s,
00229     IIIMP_message ** ptr_ret,
00230     IIIMP_card16     im_id,
00231     IIIMP_card16     ic_id,
00232     IIIMP_icattribute *     attr_list)
00233 {
00234     *ptr_ret = iiimp_geticvalues_reply_new(data_s, im_id, ic_id, attr_list);
00235     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00236 }
00237 
00238 
00239 IIIMP_status
00240 iiimp_preedit_start_reply_create(
00241     IIIMP_data_s *   data_s,
00242     IIIMP_message ** ptr_ret,
00243     IIIMP_card16     im_id,
00244     IIIMP_card16     ic_id,
00245     IIIMP_int32             maximum_length)
00246 {
00247     *ptr_ret = iiimp_preedit_start_reply_new(data_s, im_id, ic_id,
00248                                         maximum_length);
00249     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00250 }
00251 
00252 
00253 IIIMP_status
00254 iiimp_preedit_draw_create(
00255     IIIMP_data_s *   data_s,
00256     IIIMP_message ** ptr_ret,
00257     IIIMP_card16     im_id,
00258     IIIMP_card16     ic_id,
00259     IIIMP_int32             caret,
00260     IIIMP_int32             change_first,
00261     IIIMP_int32             change_length,
00262     IIIMP_contents * preedit)
00263 {
00264     *ptr_ret = iiimp_preedit_draw_new(data_s, im_id, ic_id, caret,
00265                                   change_first, change_length, preedit);
00266     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00267 }
00268 
00269 
00270 IIIMP_status
00271 iiimp_status_draw_create(
00272     IIIMP_data_s *   data_s,
00273     IIIMP_message ** ptr_ret,
00274     IIIMP_card16     im_id,
00275     IIIMP_card16     ic_id,
00276     IIIMP_contents * status)
00277 {
00278     *ptr_ret = iiimp_status_draw_new(data_s, im_id, ic_id, status);
00279     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00280 }
00281 
00282 
00283 IIIMP_status
00284 iiimp_lookup_choice_start_create(
00285     IIIMP_data_s *   data_s,
00286     IIIMP_message ** ptr_ret,
00287     IIIMP_card16     im_id,
00288     IIIMP_card16     ic_id,
00289     int                     master,
00290     int                     choice_per_window,
00291     int                     rows,
00292     int                     columns,
00293     int                     direction,
00294     int                     label_owner)
00295 {
00296     *ptr_ret = iiimp_lookup_choice_start_new(data_s, im_id, ic_id,
00297                                         master, choice_per_window,
00298                                         rows, columns, direction,
00299                                         label_owner);
00300     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00301 }
00302 
00303 
00304 IIIMP_status
00305 iiimp_lookup_choice_draw_create(
00306     IIIMP_data_s *   data_s,
00307     IIIMP_message ** ptr_ret,
00308     IIIMP_card16     im_id,
00309     IIIMP_card16     ic_id,
00310     int                     first,
00311     int                     last,
00312     int                     current,
00313     IIIMP_text *     choice,
00314     IIIMP_text *     index_label,
00315     IIIMP_text *     title)
00316 {
00317     *ptr_ret = iiimp_lookup_choice_draw_new(data_s, im_id, ic_id,
00318                                        first, last, current,
00319                                        choice, index_label, title);
00320     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00321 }
00322 
00323 
00324 IIIMP_status
00325 iiimp_lookup_choice_process_create(
00326     IIIMP_data_s *   data_s,
00327     IIIMP_message ** ptr_ret,
00328     IIIMP_card16     im_id,
00329     IIIMP_card16     ic_id,
00330     IIIMP_card16     type,
00331     IIIMP_card16     value)
00332 {
00333     *ptr_ret = iiimp_lookup_choice_process_new(data_s, im_id, ic_id,
00334                                           type, value);
00335     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00336 }
00337 
00338 
00339 IIIMP_status
00340 iiimp_aux_simple_create(
00341     IIIMP_data_s *   data_s,
00342     IIIMP_message ** ptr_ret,
00343     IIIMP_card7             opcode,
00344     IIIMP_card16     im_id,
00345     IIIMP_card16     ic_id,
00346     IIIMP_card32     class_index,
00347     IIIMP_string *   input_method_name)
00348 {
00349     *ptr_ret = iiimp_aux_simple_new(data_s, opcode, im_id, ic_id,
00350                                 class_index, input_method_name);
00351     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00352 }
00353 
00354 
00355 IIIMP_status
00356 iiimp_aux_value_create(
00357     IIIMP_data_s *   data_s,
00358     IIIMP_message ** ptr_ret,
00359     IIIMP_card7             opcode,
00360     IIIMP_card16     im_id,
00361     IIIMP_card16     ic_id,
00362     IIIMP_card32     class_index,
00363     IIIMP_string *   input_method_name,
00364     IIIMP_card32_list *     integer_value,
00365     IIIMP_string *   string_value)
00366 {
00367     *ptr_ret = iiimp_aux_value_new(data_s, opcode, im_id, ic_id,
00368                                class_index, input_method_name,
00369                                integer_value, string_value);
00370     return ((NULL == *ptr_ret) ? data_s->status : IIIMP_DATA_NO_ERROR);
00371 }
00372 
00373 
00374 /* Local Variables: */
00375 /* c-file-style: "iiim-project" */
00376 /* End: */