rpc_lib.cc

00001 /* 
00002    EyeDB Object Database Management System
00003    Copyright (C) 1994-2008 SYSRA
00004    
00005    EyeDB is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009    
00010    EyeDB is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014    
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with this library; if not, write to the Free Software
00017    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA 
00018 */
00019 
00020 /*
00021    Author: Eric Viara <viara@sysra.com>
00022 */
00023 
00024 
00025 #include <assert.h>
00026 #include "eyedblib/rpc_fe.h"
00027 #include "rpc_lib.h"
00028 #include "eyedblib/butils.h"
00029 
00030 #ifndef _STDLIB_H
00031 #include <stdlib.h>
00032 //#error "stdlib not included"
00033 #endif
00034 
00035 namespace eyedb {
00036 
00037   RPCStatus _rpc_status__;
00038 
00039   static void
00040   makeSTATUS(rpc_RpcDescription *rd, int from)
00041   {
00042     /*  rd->args[from].type = RPCStatusType;*/
00043     rd->args[from].type = rpc_StatusType;
00044     rd->args[from].send_rcv = rpc_Rcv;;
00045     rd->arg_ret = rpc_VoidType;
00046   }
00047 
00048   rpc_RpcDescription *
00049   makeDBMCREATE(void)
00050   {
00051     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBMCREATE, 4);
00052     int n = 0;
00053 
00054     rd->args[n].type = rpc_StringType; /* dbmdb */
00055     rd->args[n++].send_rcv = rpc_Send;
00056     rd->args[n].type = rpc_StringType; /* passwdauth */
00057     rd->args[n++].send_rcv = rpc_Send;
00058     rd->args[n].type = rpc_DataType;   /* dbcreate description */
00059     rd->args[n++].send_rcv = rpc_Send;
00060 
00061     makeSTATUS(rd, n);
00062     return rd;
00063   }
00064 
00065   rpc_RpcDescription *
00066   makeDBMUPDATE(void)
00067   {
00068     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBMUPDATE, 4);
00069     int n = 0;
00070 
00071     rd->args[n].type = rpc_StringType; /* dbmdb */
00072     rd->args[n++].send_rcv = rpc_Send;
00073     rd->args[n].type = rpc_StringType; /* username */
00074     rd->args[n++].send_rcv = rpc_Send;
00075     rd->args[n].type = rpc_StringType; /* passwd */
00076     rd->args[n++].send_rcv = rpc_Send;
00077 
00078     makeSTATUS(rd, n);
00079     return rd;
00080   }
00081 
00082   rpc_RpcDescription *
00083   makeDBCREATE(void)
00084   {
00085     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBCREATE, 6);
00086     int n = 0;
00087 
00088     rd->args[n].type = rpc_StringType; /* dbmdb */
00089     rd->args[n++].send_rcv = rpc_Send;
00090     rd->args[n].type = rpc_StringType; /* userauth */
00091     rd->args[n++].send_rcv = rpc_Send;
00092     rd->args[n].type = rpc_StringType; /* passwdauth */
00093     rd->args[n++].send_rcv = rpc_Send;
00094     rd->args[n].type = rpc_StringType; /* dbname */
00095     rd->args[n++].send_rcv = rpc_Send;
00096     rd->args[n].type = rpc_DataType;   /* dbcreate description */
00097     rd->args[n++].send_rcv = rpc_Send;
00098 
00099     makeSTATUS(rd, n);
00100     return rd;
00101   }
00102 
00103   rpc_RpcDescription *
00104   makeDBDELETE(void)
00105   {
00106     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBDELETE, 5);
00107     int n = 0;
00108 
00109     rd->args[n].type = rpc_StringType; /* dbmdb */
00110     rd->args[n++].send_rcv = rpc_Send;
00111     rd->args[n].type = rpc_StringType; /* userauth */
00112     rd->args[n++].send_rcv = rpc_Send;
00113     rd->args[n].type = rpc_StringType; /* passwdauth */
00114     rd->args[n++].send_rcv = rpc_Send;
00115     rd->args[n].type = rpc_StringType; /* dbname */
00116     rd->args[n++].send_rcv = rpc_Send;
00117 
00118     makeSTATUS(rd, n);
00119     return rd;
00120   }
00121 
00122   rpc_RpcDescription *
00123   makeDBINFO(void)
00124   {
00125     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBINFO, 7);
00126     int n = 0;
00127 
00128     rd->args[n].type = rpc_StringType; /* dbmdb */
00129     rd->args[n++].send_rcv = rpc_Send;
00130     rd->args[n].type = rpc_StringType; /* userauth */
00131     rd->args[n++].send_rcv = rpc_Send;
00132     rd->args[n].type = rpc_StringType; /* passwdauth */
00133     rd->args[n++].send_rcv = rpc_Send;
00134     rd->args[n].type = rpc_StringType; /* dbname */
00135     rd->args[n++].send_rcv = rpc_Send;
00136     rd->args[n].type = rpc_Int32Type;  /* dbid */
00137     rd->args[n++].send_rcv = rpc_Rcv;
00138     rd->args[n].type = rpc_DataType;   /* dbcreate description */
00139     rd->args[n++].send_rcv = rpc_Rcv;
00140 
00141     makeSTATUS(rd, n);
00142     return rd;
00143   }
00144 
00145   rpc_RpcDescription *
00146   makeDBMOVE(void)
00147   {
00148     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBMOVE, 6);
00149     int n = 0;
00150 
00151     rd->args[n].type = rpc_StringType; /* dbmdb */
00152     rd->args[n++].send_rcv = rpc_Send;
00153     rd->args[n].type = rpc_StringType; /* userauth */
00154     rd->args[n++].send_rcv = rpc_Send;
00155     rd->args[n].type = rpc_StringType; /* passwdauth */
00156     rd->args[n++].send_rcv = rpc_Send;
00157     rd->args[n].type = rpc_StringType; /* dbname */
00158     rd->args[n++].send_rcv = rpc_Send;
00159     rd->args[n].type = rpc_DataType; /* dbcreate description */
00160     rd->args[n++].send_rcv = rpc_Send;
00161 
00162     makeSTATUS(rd, n);
00163     return rd;
00164   }
00165 
00166   rpc_RpcDescription *
00167   makeDBCOPY(void)
00168   {
00169     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBCOPY, 8);
00170     int n = 0;
00171 
00172     rd->args[n].type = rpc_StringType; /* dbmdb */
00173     rd->args[n++].send_rcv = rpc_Send;
00174     rd->args[n].type = rpc_StringType; /* userauth */
00175     rd->args[n++].send_rcv = rpc_Send;
00176     rd->args[n].type = rpc_StringType; /* passwdauth */
00177     rd->args[n++].send_rcv = rpc_Send;
00178     rd->args[n].type = rpc_StringType; /* dbname */
00179     rd->args[n++].send_rcv = rpc_Send;
00180     rd->args[n].type = rpc_StringType; /* newdbname */
00181     rd->args[n++].send_rcv = rpc_Send;
00182     rd->args[n].type = rpc_Int32Type;  /* newdbid */
00183     rd->args[n++].send_rcv = rpc_Send;
00184     rd->args[n].type = rpc_DataType; /* dbcreate description */
00185     rd->args[n++].send_rcv = rpc_Send;
00186 
00187     makeSTATUS(rd, n);
00188     return rd;
00189   }
00190 
00191   rpc_RpcDescription *
00192   makeDBRENAME(void)
00193   {
00194     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBRENAME, 6);
00195     int n = 0;
00196 
00197     rd->args[n].type = rpc_StringType; /* dbmdb */
00198     rd->args[n++].send_rcv = rpc_Send;
00199     rd->args[n].type = rpc_StringType; /* userauth */
00200     rd->args[n++].send_rcv = rpc_Send;
00201     rd->args[n].type = rpc_StringType; /* passwdauth */
00202     rd->args[n++].send_rcv = rpc_Send;
00203     rd->args[n].type = rpc_StringType; /* dbname */
00204     rd->args[n++].send_rcv = rpc_Send;
00205     rd->args[n].type = rpc_StringType; /* newdbname */
00206     rd->args[n++].send_rcv = rpc_Send;
00207   
00208     makeSTATUS(rd, n);
00209     return rd;
00210   }
00211 
00212   rpc_RpcDescription *
00213   makeUSER_ADD(void)
00214   {
00215     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_USER_ADD, 7);
00216     int n = 0;
00217 
00218     rd->args[n].type = rpc_StringType; /* dbmdb */
00219     rd->args[n++].send_rcv = rpc_Send;
00220     rd->args[n].type = rpc_StringType; /* userauth */
00221     rd->args[n++].send_rcv = rpc_Send;
00222     rd->args[n].type = rpc_StringType; /* passwdauth */
00223     rd->args[n++].send_rcv = rpc_Send;
00224     rd->args[n].type = rpc_StringType; /* user */
00225     rd->args[n++].send_rcv = rpc_Send;
00226     rd->args[n].type = rpc_StringType; /* passwd */
00227     rd->args[n++].send_rcv = rpc_Send;
00228     rd->args[n].type = rpc_Int32Type;  /* is_unix */
00229     rd->args[n++].send_rcv = rpc_Send;
00230   
00231     makeSTATUS(rd, n);
00232     return rd;
00233   }
00234 
00235   rpc_RpcDescription *
00236   makeUSER_DELETE(void)
00237   {
00238     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_USER_DELETE, 5);
00239     int n = 0;
00240 
00241     rd->args[n].type = rpc_StringType; /* dbmdb */
00242     rd->args[n++].send_rcv = rpc_Send;
00243     rd->args[n].type = rpc_StringType; /* userauth */
00244     rd->args[n++].send_rcv = rpc_Send;
00245     rd->args[n].type = rpc_StringType; /* passwdauth */
00246     rd->args[n++].send_rcv = rpc_Send;
00247     rd->args[n].type = rpc_StringType; /* user */
00248     rd->args[n++].send_rcv = rpc_Send;
00249   
00250     makeSTATUS(rd, n);
00251     return rd;
00252   }
00253 
00254   rpc_RpcDescription *
00255   makeUSER_PASSWD_SET(void)
00256   {
00257     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_USER_PASSWD_SET, 6);
00258     int n = 0;
00259 
00260     rd->args[n].type = rpc_StringType; /* dbmdb */
00261     rd->args[n++].send_rcv = rpc_Send;
00262     rd->args[n].type = rpc_StringType; /* userauth */
00263     rd->args[n++].send_rcv = rpc_Send;
00264     rd->args[n].type = rpc_StringType; /* passwdauth */
00265     rd->args[n++].send_rcv = rpc_Send;
00266     rd->args[n].type = rpc_StringType; /* user */
00267     rd->args[n++].send_rcv = rpc_Send;
00268     rd->args[n].type = rpc_StringType; /* newpasswd */
00269     rd->args[n++].send_rcv = rpc_Send;
00270   
00271     makeSTATUS(rd, n);
00272     return rd;
00273   }
00274 
00275   rpc_RpcDescription *
00276   makePASSWD_SET(void)
00277   {
00278     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_PASSWD_SET, 5);
00279     int n = 0;
00280 
00281     rd->args[n].type = rpc_StringType; /* dbmdb */
00282     rd->args[n++].send_rcv = rpc_Send;
00283     rd->args[n].type = rpc_StringType; /* user */
00284     rd->args[n++].send_rcv = rpc_Send;
00285     rd->args[n].type = rpc_StringType; /* passwd */
00286     rd->args[n++].send_rcv = rpc_Send;
00287     rd->args[n].type = rpc_StringType; /* newpasswd */
00288     rd->args[n++].send_rcv = rpc_Send;
00289   
00290     makeSTATUS(rd, n);
00291     return rd;
00292   }
00293 
00294   rpc_RpcDescription *
00295   makeDEFAULT_DBACCESS_SET(void)
00296   {
00297     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DEFAULT_DBACCESS_SET, 6);
00298     int n = 0;
00299 
00300     rd->args[n].type = rpc_StringType; /* dbmdb */
00301     rd->args[n++].send_rcv = rpc_Send;
00302     rd->args[n].type = rpc_StringType; /* userauth */
00303     rd->args[n++].send_rcv = rpc_Send;
00304     rd->args[n].type = rpc_StringType; /* passwdauth */
00305     rd->args[n++].send_rcv = rpc_Send;
00306     rd->args[n].type = rpc_StringType; /* dbname */
00307     rd->args[n++].send_rcv = rpc_Send;
00308     rd->args[n].type = rpc_Int32Type;  /* dbaccess mode */
00309     rd->args[n++].send_rcv = rpc_Send;
00310   
00311     makeSTATUS(rd, n);
00312     return rd;
00313   }
00314 
00315   rpc_RpcDescription *
00316   makeUSER_DBACCESS_SET(void)
00317   {
00318     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_USER_DBACCESS_SET, 7);
00319     int n = 0;
00320 
00321     rd->args[n].type = rpc_StringType; /* dbmdb */
00322     rd->args[n++].send_rcv = rpc_Send;
00323     rd->args[n].type = rpc_StringType; /* userauth */
00324     rd->args[n++].send_rcv = rpc_Send;
00325     rd->args[n].type = rpc_StringType; /* passwdauth */
00326     rd->args[n++].send_rcv = rpc_Send;
00327     rd->args[n].type = rpc_StringType; /* dbname */
00328     rd->args[n++].send_rcv = rpc_Send;
00329     rd->args[n].type = rpc_StringType; /* user */
00330     rd->args[n++].send_rcv = rpc_Send;
00331     rd->args[n].type = rpc_Int32Type;  /* dbaccess mode */
00332     rd->args[n++].send_rcv = rpc_Send;
00333   
00334     makeSTATUS(rd, n);
00335     return rd;
00336   }
00337 
00338   rpc_RpcDescription *
00339   makeUSER_SYSACCESS_SET(void)
00340   {
00341     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_USER_SYSACCESS_SET, 6);
00342     int n = 0;
00343 
00344     rd->args[n].type = rpc_StringType; /* dbmdb */
00345     rd->args[n++].send_rcv = rpc_Send;
00346     rd->args[n].type = rpc_StringType; /* userauth */
00347     rd->args[n++].send_rcv = rpc_Send;
00348     rd->args[n].type = rpc_StringType; /* passwdauth */
00349     rd->args[n++].send_rcv = rpc_Send;
00350     rd->args[n].type = rpc_StringType; /* user */
00351     rd->args[n++].send_rcv = rpc_Send;
00352     rd->args[n].type = rpc_Int32Type;  /* dbaccess mode */
00353     rd->args[n++].send_rcv = rpc_Send;
00354   
00355     makeSTATUS(rd, n);
00356     return rd;
00357   }
00358 
00359   rpc_RpcDescription *
00360   makeBACKEND_INTERRUPT(void)
00361   {
00362     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_BACKEND_INTERRUPT, 2);
00363     int n = 0;
00364 
00365     rd->args[n].type = rpc_Int32Type; /* */
00366     rd->args[n++].send_rcv = rpc_Send;
00367 
00368     makeSTATUS(rd, n);
00369 
00370     return rd;
00371   }
00372 
00373   rpc_RpcDescription *
00374   makeTRANSACTION_BEGIN(void)
00375   {
00376     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_TRANSACTION_BEGIN, 9);
00377     int n = 0;
00378 
00379     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00380     rd->args[n++].send_rcv = rpc_Send;
00381     rd->args[n].type = rpc_Int32Type; /* trsmode */
00382     rd->args[n++].send_rcv = rpc_Send;
00383     rd->args[n].type = rpc_Int32Type; /* lockmode */
00384     rd->args[n++].send_rcv = rpc_Send;
00385     rd->args[n].type = rpc_Int32Type; /* recovmode */
00386     rd->args[n++].send_rcv = rpc_Send;
00387     rd->args[n].type = rpc_Int32Type; /* magorder */
00388     rd->args[n++].send_rcv = rpc_Send;
00389     rd->args[n].type = rpc_Int32Type; /* ratioalrt */
00390     rd->args[n++].send_rcv = rpc_Send;
00391     rd->args[n].type = rpc_Int32Type; /* wait_timeout */
00392     rd->args[n++].send_rcv = rpc_Send;
00393     rd->args[n].type = rpc_Int32Type; /* &tid */
00394     rd->args[n++].send_rcv = rpc_Rcv;
00395 
00396     makeSTATUS(rd, n);
00397     return rd;
00398   }
00399 
00400   rpc_RpcDescription *
00401   makeTRANSACTION_COMMIT(void)
00402   {
00403     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_TRANSACTION_COMMIT, 3);
00404     int n = 0;
00405 
00406     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00407     rd->args[n++].send_rcv = rpc_Send;
00408     rd->args[n].type = rpc_Int32Type; /* tid */
00409     rd->args[n++].send_rcv = rpc_Send;
00410 
00411     makeSTATUS(rd, n);
00412     return rd;
00413   }
00414 
00415   rpc_RpcDescription *
00416   makeTRANSACTION_ABORT(void)
00417   {
00418     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_TRANSACTION_ABORT, 3);
00419     int n = 0;
00420 
00421     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00422     rd->args[n++].send_rcv = rpc_Send;
00423     rd->args[n].type = rpc_Int32Type; /* tid */
00424     rd->args[n++].send_rcv = rpc_Send;
00425 
00426     makeSTATUS(rd, n);
00427     return rd;
00428   }
00429 
00430   rpc_RpcDescription *
00431   makeTRANSACTION_PARAMS_SET(void)
00432   {
00433     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_TRANSACTION_PARAMS_SET, 8);
00434     int n = 0;
00435 
00436     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00437     rd->args[n++].send_rcv = rpc_Send;
00438     rd->args[n].type = rpc_Int32Type; /* trsmode */
00439     rd->args[n++].send_rcv = rpc_Send;
00440     rd->args[n].type = rpc_Int32Type; /* lockmode */
00441     rd->args[n++].send_rcv = rpc_Send;
00442     rd->args[n].type = rpc_Int32Type; /* recovmode */
00443     rd->args[n++].send_rcv = rpc_Send;
00444     rd->args[n].type = rpc_Int32Type; /* magorder */
00445     rd->args[n++].send_rcv = rpc_Send;
00446     rd->args[n].type = rpc_Int32Type; /* ratioalrt */
00447     rd->args[n++].send_rcv = rpc_Send;
00448     rd->args[n].type = rpc_Int32Type; /* wait_timeout */
00449     rd->args[n++].send_rcv = rpc_Send;
00450 
00451     makeSTATUS(rd, n);
00452     return rd;
00453   }
00454 
00455   rpc_RpcDescription *
00456   makeTRANSACTION_PARAMS_GET(void)
00457   {
00458     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_TRANSACTION_PARAMS_SET, 8);
00459     int n = 0;
00460 
00461     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00462     rd->args[n++].send_rcv = rpc_Send;
00463     rd->args[n].type = rpc_Int32Type; /* trsmode */
00464     rd->args[n++].send_rcv = rpc_Rcv;
00465     rd->args[n].type = rpc_Int32Type; /* lockmode */
00466     rd->args[n++].send_rcv = rpc_Rcv;
00467     rd->args[n].type = rpc_Int32Type; /* recovmode */
00468     rd->args[n++].send_rcv = rpc_Rcv;
00469     rd->args[n].type = rpc_Int32Type; /* magorder */
00470     rd->args[n++].send_rcv = rpc_Rcv;
00471     rd->args[n].type = rpc_Int32Type; /* ratioalrt */
00472     rd->args[n++].send_rcv = rpc_Rcv;
00473     rd->args[n].type = rpc_Int32Type; /* wait_timeout */
00474     rd->args[n++].send_rcv = rpc_Rcv;
00475 
00476     makeSTATUS(rd, n);
00477     return rd;
00478   }
00479 
00480   rpc_RpcDescription *
00481   makeDBOPEN(void)
00482   {
00483     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBOPEN, 15);
00484     int n = 0;
00485 
00486     rd->args[n].type = rpc_StringType; /* dbmdb */
00487     rd->args[n++].send_rcv = rpc_Send;
00488     rd->args[n].type = rpc_StringType; /* userauth */
00489     rd->args[n++].send_rcv = rpc_Send;
00490     rd->args[n].type = rpc_StringType; /* passwdauth */
00491     rd->args[n++].send_rcv = rpc_Send;
00492     rd->args[n].type = rpc_StringType; /* dbname */
00493     rd->args[n++].send_rcv = rpc_Send;
00494     rd->args[n].type = rpc_Int32Type;  /* dbid */
00495     rd->args[n++].send_rcv = rpc_Send;
00496     rd->args[n].type = rpc_Int32Type;  /* _DBRead or _DBRW */
00497     rd->args[n++].send_rcv = rpc_Send;
00498     rd->args[n].type = rpc_Int32Type;  /* oh.maph */
00499     rd->args[n++].send_rcv = rpc_Send;
00500     rd->args[n].type = rpc_Int32Type;  /* oh.mapwide */
00501     rd->args[n++].send_rcv = rpc_Send;
00502 
00503     rd->args[n].type = rpc_Int32Type;  /* ruid */
00504     rd->args[n++].send_rcv = rpc_Rcv;
00505     rd->args[n].type = rpc_StringType; /* rname */
00506     rd->args[n++].send_rcv = rpc_Rcv;
00507     rd->args[n].type = rpc_Int32Type;  /* rdbid */
00508     rd->args[n++].send_rcv = rpc_Rcv;
00509     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
00510     rd->args[n++].send_rcv = rpc_Rcv;
00511     rd->args[n].type = rpc_Int32Type;  /* version */
00512     rd->args[n++].send_rcv = rpc_Rcv;
00513     rd->args[n].type = OidType;    /* schema oid */
00514     rd->args[n++].send_rcv = rpc_Rcv;;
00515   
00516     makeSTATUS(rd, n);
00517     return rd;
00518   }
00519 
00520   rpc_RpcDescription *
00521   makeDBOPENLOCAL(void)
00522   {
00523     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBOPENLOCAL, 15);
00524     int n = 0;
00525 
00526     rd->args[n].type = rpc_StringType; /* dbmdb */
00527     rd->args[n++].send_rcv = rpc_Send;
00528     rd->args[n].type = rpc_StringType; /* userauth */
00529     rd->args[n++].send_rcv = rpc_Send;
00530     rd->args[n].type = rpc_StringType; /* passwdauth */
00531     rd->args[n++].send_rcv = rpc_Send;
00532     rd->args[n].type = rpc_StringType; /* dbname */
00533     rd->args[n++].send_rcv = rpc_Send;
00534     rd->args[n].type = rpc_Int32Type;  /* dbid */
00535     rd->args[n++].send_rcv = rpc_Send;
00536     rd->args[n].type = rpc_Int32Type;  /* _DBRead or _DBRW */
00537     rd->args[n++].send_rcv = rpc_Send;
00538     rd->args[n].type = rpc_Int32Type;  /* oh.maph */
00539     rd->args[n++].send_rcv = rpc_Send;
00540     rd->args[n].type = rpc_Int32Type;  /* oh.mapwide */
00541     rd->args[n++].send_rcv = rpc_Send;
00542 
00543     rd->args[n].type = rpc_Int32Type;  /* ruid */
00544     rd->args[n++].send_rcv = rpc_Rcv;
00545     rd->args[n].type = rpc_StringType; /* rname */
00546     rd->args[n++].send_rcv = rpc_Rcv;
00547     rd->args[n].type = rpc_Int32Type;  /* rdbid */
00548     rd->args[n++].send_rcv = rpc_Rcv;
00549     rd->args[n].type = rpc_Int32Type;  /* version */
00550     rd->args[n++].send_rcv = rpc_Rcv;
00551     rd->args[n].type = rpcDB_LocalDBContextType;
00552     rd->args[n++].send_rcv = rpc_Rcv;;
00553     rd->args[n].type = OidType;    /* schema oid */
00554     rd->args[n++].send_rcv = rpc_Rcv;;
00555 
00556     makeSTATUS(rd, n);
00557     return rd;
00558   }
00559 
00560   rpc_RpcDescription *
00561   makeDBCLOSE(void)
00562   {
00563     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DBCLOSE, 2);
00564     int n = 0;
00565 
00566     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00567     rd->args[n++].send_rcv = rpc_Send;
00568 
00569     makeSTATUS(rd, n);
00570     return rd;
00571   }
00572 
00573   rpc_RpcDescription *
00574   makeOBJECT_CREATE(void)
00575   {
00576     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_CREATE, 6);
00577     int n = 0;
00578 
00579     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00580     rd->args[n++].send_rcv = rpc_Send;
00581     rd->args[n].type = rpc_Int32Type; /* dspid */
00582     rd->args[n++].send_rcv = rpc_Send;
00583     rd->args[n].type = rpc_DataType;
00584     rd->args[n++].send_rcv = rpc_Send;
00585     rd->args[n].type = OidType;
00586     rd->args[n++].send_rcv = (rpc_SendRcv)(rpc_Send|rpc_Rcv);
00587     rd->args[n].type = rpc_DataType;
00588     rd->args[n++].send_rcv = rpc_Rcv;
00589 
00590     makeSTATUS(rd, n);
00591     return rd;
00592   }
00593 
00594   rpc_RpcDescription *
00595   makeOBJECT_READ(void)
00596   {
00597     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_READ, 7);
00598     int n = 0;
00599 
00600     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00601     rd->args[n++].send_rcv = rpc_Send;
00602     rd->args[n].type = rpc_DataType;
00603     rd->args[n++].send_rcv = rpc_Send;
00604     rd->args[n].type = rpc_Int32Type; /* dspid */
00605     rd->args[n++].send_rcv = rpc_Rcv;
00606     rd->args[n].type = OidType;
00607     rd->args[n++].send_rcv = rpc_Send;
00608     rd->args[n].type = rpc_Int32Type;  /* lockmode */
00609     rd->args[n++].send_rcv = rpc_Send;
00610     rd->args[n].type = rpc_DataType;
00611     rd->args[n++].send_rcv = rpc_Rcv;
00612 
00613     makeSTATUS(rd, n);
00614     return rd;
00615   }
00616 
00617   rpc_RpcDescription *
00618   makeOBJECT_WRITE(void)
00619   {
00620     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_WRITE, 5);
00621     int n = 0;
00622 
00623     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00624     rd->args[n++].send_rcv = rpc_Send;
00625     rd->args[n].type = rpc_DataType;
00626     rd->args[n++].send_rcv = rpc_Send;
00627     rd->args[n].type = OidType;
00628     rd->args[n++].send_rcv = rpc_Send;
00629     rd->args[n].type = rpc_DataType;
00630     rd->args[n++].send_rcv = rpc_Rcv;
00631 
00632     makeSTATUS(rd, n);
00633     return rd;
00634   }
00635 
00636   rpc_RpcDescription *
00637   makeOBJECT_DELETE(void)
00638   {
00639     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_DELETE, 5);
00640     int n = 0;
00641 
00642     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00643     rd->args[n++].send_rcv = rpc_Send;
00644     rd->args[n].type = OidType;
00645     rd->args[n++].send_rcv = rpc_Send;
00646     rd->args[n].type = rpc_Int32Type;
00647     rd->args[n++].send_rcv = rpc_Send;
00648     rd->args[n].type = rpc_DataType;
00649     rd->args[n++].send_rcv = rpc_Rcv;
00650   
00651     makeSTATUS(rd, n);
00652     return rd;
00653   }
00654 
00655   rpc_RpcDescription *
00656   makeOBJECT_HEADER_READ(void)
00657   {
00658     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_HEADER_READ, 9);
00659     int n = 0;
00660 
00661     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00662     rd->args[n++].send_rcv = rpc_Send;
00663     rd->args[n].type = OidType;
00664     rd->args[n++].send_rcv = rpc_Send;
00665     /* object_header receive */
00666     rd->args[n].type = rpc_Int32Type;
00667     rd->args[n++].send_rcv = rpc_Rcv;
00668     rd->args[n].type = rpc_Int32Type;
00669     rd->args[n++].send_rcv = rpc_Rcv;
00670     rd->args[n].type = rpc_Int32Type;
00671     rd->args[n++].send_rcv = rpc_Rcv;
00672     rd->args[n].type = rpc_Int32Type;
00673     rd->args[n++].send_rcv = rpc_Rcv;
00674     rd->args[n].type = OidType;
00675     rd->args[n++].send_rcv = rpc_Rcv;
00676     rd->args[n].type = OidType;
00677     rd->args[n++].send_rcv = rpc_Rcv;
00678 
00679     makeSTATUS(rd, n);
00680     return rd;
00681   }
00682 
00683   rpc_RpcDescription *
00684   makeOBJECT_SIZE_MODIFY(void)
00685   {
00686     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_SIZE_MODIFY, 4);
00687     int n = 0;
00688 
00689     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00690     rd->args[n++].send_rcv = rpc_Send;
00691     rd->args[n].type = rpc_Int32Type;
00692     rd->args[n++].send_rcv = rpc_Send;
00693     rd->args[n].type = OidType;
00694     rd->args[n++].send_rcv = rpc_Send;
00695 
00696     makeSTATUS(rd, n);
00697     return rd;
00698   }
00699 
00700 
00701   rpc_RpcDescription *
00702   makeOBJECT_CHECK(void)
00703   {
00704     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_CHECK, 5);
00705     int n = 0;
00706 
00707     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00708     rd->args[n++].send_rcv = rpc_Send;
00709     rd->args[n].type = OidType;
00710     rd->args[n++].send_rcv = rpc_Send;
00711     rd->args[n].type = rpc_Int32Type;
00712     rd->args[n++].send_rcv = rpc_Rcv;
00713     rd->args[n].type = OidType;
00714     rd->args[n++].send_rcv = rpc_Rcv;
00715 
00716     makeSTATUS(rd, n);
00717     return rd;
00718   }
00719 
00720   rpc_RpcDescription *
00721   makeOBJECT_PROTECTION_SET(void)
00722   {
00723     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_PROTECTION_SET, 4);
00724     int n = 0;
00725 
00726     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00727     rd->args[n++].send_rcv = rpc_Send;
00728     rd->args[n].type = OidType;   /* obj_oid */
00729     rd->args[n++].send_rcv = rpc_Send;
00730     rd->args[n].type = OidType;   /* prot_oid */
00731     rd->args[n++].send_rcv = rpc_Send;
00732 
00733     makeSTATUS(rd, n);
00734     return rd;
00735   }
00736 
00737   rpc_RpcDescription *
00738   makeOBJECT_PROTECTION_GET(void)
00739   {
00740     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OBJECT_PROTECTION_GET, 4);
00741     int n = 0;
00742 
00743     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00744     rd->args[n++].send_rcv = rpc_Send;
00745     rd->args[n].type = OidType;   /* obj_oid */
00746     rd->args[n++].send_rcv = rpc_Send;
00747     rd->args[n].type = OidType;   /* prot_oid */
00748     rd->args[n++].send_rcv = rpc_Rcv;
00749 
00750     makeSTATUS(rd, n);
00751     return rd;
00752   }
00753 
00754   rpc_RpcDescription *
00755   makeOID_MAKE(void)
00756   {
00757     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OID_MAKE, 6);
00758     int n = 0;
00759 
00760     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00761     rd->args[n++].send_rcv = rpc_Send;
00762     rd->args[n].type = rpc_Int32Type; /* dspid */
00763     rd->args[n++].send_rcv = rpc_Send;
00764     rd->args[n].type = rpc_DataType;
00765     rd->args[n++].send_rcv = rpc_Send;
00766     rd->args[n].type = rpc_Int32Type;
00767     rd->args[n++].send_rcv = rpc_Send;
00768     rd->args[n].type = OidType;
00769     rd->args[n++].send_rcv = rpc_Rcv;
00770 
00771     makeSTATUS(rd, n);
00772     return rd;
00773   }
00774 
00775   rpc_RpcDescription *
00776   makeDATA_CREATE(void)
00777   {
00778     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATA_CREATE, 5);
00779     int n = 0;
00780 
00781     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00782     rd->args[n++].send_rcv = rpc_Send;
00783     rd->args[n].type = rpc_Int32Type; /* dspid */
00784     rd->args[n++].send_rcv = rpc_Send;
00785     rd->args[n].type = rpc_DataType;
00786     rd->args[n++].send_rcv = rpc_Send;
00787     rd->args[n].type = OidType;
00788     rd->args[n++].send_rcv = rpc_Rcv;
00789 
00790     makeSTATUS(rd, n);
00791     return rd;
00792   }
00793 
00794   rpc_RpcDescription *
00795   makeDATA_READ(void)
00796   {
00797     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATA_READ, 7);
00798     int n = 0;
00799 
00800     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00801     rd->args[n++].send_rcv = rpc_Send;
00802     rd->args[n].type = rpc_Int32Type;
00803     rd->args[n++].send_rcv = rpc_Send;
00804     rd->args[n].type = rpc_Int32Type;
00805     rd->args[n++].send_rcv = rpc_Send;
00806     rd->args[n].type = rpc_Int32Type; /* dspid */
00807     rd->args[n++].send_rcv = rpc_Rcv;
00808     rd->args[n].type = OidType;
00809     rd->args[n++].send_rcv = rpc_Send;
00810     rd->args[n].type = rpc_DataType;
00811     rd->args[n++].send_rcv = rpc_Rcv;
00812   
00813     makeSTATUS(rd, n);
00814     return rd;
00815   }
00816 
00817   rpc_RpcDescription *
00818   makeDATA_WRITE(void)
00819   {
00820     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATA_WRITE, 5);
00821     int n = 0;
00822 
00823     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00824     rd->args[n++].send_rcv = rpc_Send;
00825     rd->args[n].type = rpc_Int32Type;
00826     rd->args[n++].send_rcv = rpc_Send;
00827     rd->args[n].type = rpc_DataType;
00828     rd->args[n++].send_rcv = rpc_Send;
00829     rd->args[n].type = OidType;
00830     rd->args[n++].send_rcv = rpc_Send;
00831 
00832     makeSTATUS(rd, n);
00833     return rd;
00834   }
00835 
00836   rpc_RpcDescription *
00837   makeDATA_DELETE(void)
00838   {
00839     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATA_DELETE, 3);
00840     int n = 0;
00841 
00842     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00843     rd->args[n++].send_rcv = rpc_Send;
00844     rd->args[n].type = OidType;
00845     rd->args[n++].send_rcv = rpc_Send;
00846 
00847     makeSTATUS(rd, n);
00848     return rd;
00849   }
00850 
00851   rpc_RpcDescription *
00852   makeDATA_SIZE_GET(void)
00853   {
00854     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATA_SIZE_GET, 4);
00855     int n = 0;
00856 
00857     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00858     rd->args[n++].send_rcv = rpc_Send;
00859     rd->args[n].type = OidType;
00860     rd->args[n++].send_rcv = rpc_Send;
00861     rd->args[n].type = rpc_Int32Type;
00862     rd->args[n++].send_rcv = rpc_Rcv;
00863 
00864     makeSTATUS(rd, n);
00865     return rd;
00866   }
00867 
00868   rpc_RpcDescription *
00869   makeDATA_SIZE_MODIFY(void)
00870   {
00871     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATA_SIZE_MODIFY, 4);
00872     int n = 0;
00873 
00874     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00875     rd->args[n++].send_rcv = rpc_Send;
00876     rd->args[n].type = rpc_Int32Type; /* size */
00877     rd->args[n++].send_rcv = rpc_Send;
00878     rd->args[n].type = OidType;
00879     rd->args[n++].send_rcv = rpc_Send;
00880 
00881     makeSTATUS(rd, n);
00882     return rd;
00883   }
00884 
00885   rpc_RpcDescription *
00886   makeVDDATA_CREATE(void)
00887   {
00888     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_VDDATA_CREATE, 11);
00889     int n = 0;
00890 
00891     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
00892     rd->args[n++].send_rcv = rpc_Send;
00893     rd->args[n].type = rpc_Int32Type;  /* dspid */
00894     rd->args[n++].send_rcv = rpc_Send; 
00895     rd->args[n].type = OidType;    /* actual oid_cl */
00896     rd->args[n++].send_rcv = rpc_Send;
00897     rd->args[n].type = OidType;    /* oid_cl */
00898     rd->args[n++].send_rcv = rpc_Send;
00899     rd->args[n].type = rpc_Int32Type;  /* attr num */
00900     rd->args[n++].send_rcv = rpc_Send; 
00901     rd->args[n].type = rpc_Int32Type;  /* attr count */
00902     rd->args[n++].send_rcv = rpc_Send;
00903     rd->args[n].type = rpc_DataType;   /* vd data */
00904     rd->args[n++].send_rcv = rpc_Send;
00905     rd->args[n].type = rpc_DataType;   /* idx data */
00906     rd->args[n++].send_rcv = rpc_Send;
00907     rd->args[n].type = OidType;    /* object oid */
00908     rd->args[n++].send_rcv = rpc_Send;
00909     rd->args[n].type = OidType;    /* vd data oid */
00910     rd->args[n++].send_rcv = rpc_Rcv;
00911 
00912     makeSTATUS(rd, n);
00913     return rd;
00914   }
00915 
00916   rpc_RpcDescription *
00917   makeVDDATA_WRITE(void)
00918   {
00919     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_VDDATA_WRITE, 10);
00920     int n = 0;
00921 
00922     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
00923     rd->args[n++].send_rcv = rpc_Send;
00924     rd->args[n].type = OidType;    /* actual oid_cl */
00925     rd->args[n++].send_rcv = rpc_Send;
00926     rd->args[n].type = OidType;    /* oid_cl */
00927     rd->args[n++].send_rcv = rpc_Send;
00928     rd->args[n].type = rpc_Int32Type;  /* attr num */
00929     rd->args[n++].send_rcv = rpc_Send;
00930     rd->args[n].type = rpc_Int32Type;  /* attr count */
00931     rd->args[n++].send_rcv = rpc_Send; 
00932     rd->args[n].type = rpc_DataType;   /* vd data */
00933     rd->args[n++].send_rcv = rpc_Send;
00934     rd->args[n].type = rpc_DataType;   /* idx data */
00935     rd->args[n++].send_rcv = rpc_Send;
00936     rd->args[n].type = OidType;    /* object oid */
00937     rd->args[n++].send_rcv = rpc_Send;  
00938     rd->args[n].type = OidType;    /* vd data oid */
00939     rd->args[n++].send_rcv = rpc_Send; 
00940 
00941     makeSTATUS(rd, n);
00942     return rd;
00943   }
00944 
00945   rpc_RpcDescription *
00946   makeVDDATA_DELETE(void)
00947   {
00948     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_VDDATA_DELETE, 8);
00949     int n = 0;
00950 
00951     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
00952     rd->args[n++].send_rcv = rpc_Send;
00953     rd->args[n].type = OidType;    /* actual oid_cl */
00954     rd->args[n++].send_rcv = rpc_Send;
00955     rd->args[n].type = OidType;    /* oid_cl */
00956     rd->args[n++].send_rcv = rpc_Send;
00957     rd->args[n].type = rpc_Int32Type;  /* attr num */
00958     rd->args[n++].send_rcv = rpc_Send;
00959     rd->args[n].type = OidType;    /* object oid */
00960     rd->args[n++].send_rcv = rpc_Send;
00961     rd->args[n].type = OidType;    /* vd data oid */
00962     rd->args[n++].send_rcv = rpc_Send;
00963     rd->args[n].type = rpc_DataType;   /* idx data */
00964     rd->args[n++].send_rcv = rpc_Send;
00965 
00966     makeSTATUS(rd, n);
00967     return rd;
00968   }
00969 
00970   rpc_RpcDescription *
00971   makeSCHEMA_COMPLETE(void)
00972   {
00973     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_SCHEMA_COMPLETE, 3);
00974     int n = 0;
00975 
00976     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00977     rd->args[n++].send_rcv = rpc_Send;
00978     rd->args[n].type = rpc_StringType; /* schname */
00979     rd->args[n++].send_rcv = rpc_Send;
00980 
00981     makeSTATUS(rd, n);
00982     return rd;
00983   }
00984 
00985   rpc_RpcDescription *
00986   makeATTRIBUTE_INDEX_CREATE(void)
00987   {
00988     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ATTRIBUTE_INDEX_CREATE, 7);
00989     int n = 0;
00990 
00991     rd->args[n].type = rpc_Int32Type; /* rdbhid */
00992     rd->args[n++].send_rcv = rpc_Send;
00993     rd->args[n].type = OidType;   /* class oid */
00994     rd->args[n++].send_rcv = rpc_Send;
00995     rd->args[n].type = rpc_Int32Type; /* attr num */
00996     rd->args[n++].send_rcv = rpc_Send;
00997     rd->args[n].type = rpc_Int32Type; /* mode */
00998     rd->args[n++].send_rcv = rpc_Send;
00999     rd->args[n].type = OidType;   /* multi idx oid */
01000     rd->args[n++].send_rcv = rpc_Send;
01001     rd->args[n].type = rpc_DataType;  /* idx context */
01002     rd->args[n++].send_rcv = rpc_Send;
01003 
01004     makeSTATUS(rd, n);
01005     return rd;
01006   }
01007 
01008   rpc_RpcDescription *
01009   makeATTRIBUTE_INDEX_REMOVE(void)
01010   {
01011     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ATTRIBUTE_INDEX_REMOVE, 6);
01012     int n = 0;
01013 
01014     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01015     rd->args[n++].send_rcv = rpc_Send;
01016     rd->args[n].type = OidType;   /* class oid */
01017     rd->args[n++].send_rcv = rpc_Send;
01018     rd->args[n].type = rpc_Int32Type; /* attr num */
01019     rd->args[n++].send_rcv = rpc_Send;
01020     rd->args[n].type = rpc_Int32Type; /* mode */
01021     rd->args[n++].send_rcv = rpc_Send;
01022     rd->args[n].type = rpc_DataType;  /* idx context */
01023     rd->args[n++].send_rcv = rpc_Send;
01024 
01025     makeSTATUS(rd, n);
01026     return rd;
01027   }
01028 
01029   rpc_RpcDescription *
01030   makeINDEX_CREATE(void)
01031   {
01032     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_INDEX_CREATE, 4);
01033     int n = 0;
01034 
01035     rd->args[n].type = rpc_Int32Type; /* dbh */
01036     rd->args[n++].send_rcv = rpc_Send;
01037     rd->args[n].type = rpc_Int32Type; /* index_moving */
01038     rd->args[n++].send_rcv = rpc_Send;
01039     rd->args[n].type = OidType; /* objoid */
01040     rd->args[n++].send_rcv = rpc_Send;
01041 
01042     makeSTATUS(rd, n);
01043     return rd;
01044   }
01045 
01046   rpc_RpcDescription *
01047   makeINDEX_REMOVE(void)
01048   {
01049     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_INDEX_REMOVE, 4);
01050     int n = 0;
01051 
01052     rd->args[n].type = rpc_Int32Type; /* dbh */
01053     rd->args[n++].send_rcv = rpc_Send;
01054     rd->args[n].type = OidType; /* objoid */
01055     rd->args[n++].send_rcv = rpc_Send;
01056     rd->args[n].type = rpc_Int32Type; /* reentrant */
01057     rd->args[n++].send_rcv = rpc_Send;
01058 
01059     makeSTATUS(rd, n);
01060     return rd;
01061   }
01062 
01063   rpc_RpcDescription *
01064   makeCONSTRAINT_CREATE(void)
01065   {
01066     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_CONSTRAINT_CREATE, 3);
01067     int n = 0;
01068 
01069     rd->args[n].type = rpc_Int32Type; /* dbh */
01070     rd->args[n++].send_rcv = rpc_Send;
01071     rd->args[n].type = OidType; /* objoid */
01072     rd->args[n++].send_rcv = rpc_Send;
01073 
01074     makeSTATUS(rd, n);
01075     return rd;
01076   }
01077 
01078   rpc_RpcDescription *
01079   makeCONSTRAINT_DELETE(void)
01080   {
01081     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_CONSTRAINT_DELETE, 4);
01082     int n = 0;
01083 
01084     rd->args[n].type = rpc_Int32Type; /* dbh */
01085     rd->args[n++].send_rcv = rpc_Send;
01086     rd->args[n].type = OidType; /* objoid */
01087     rd->args[n++].send_rcv = rpc_Send;
01088     rd->args[n].type = rpc_Int32Type; /* reentrant */
01089     rd->args[n++].send_rcv = rpc_Send;
01090 
01091     makeSTATUS(rd, n);
01092     return rd;
01093   }
01094 
01095   rpc_RpcDescription *
01096   makeCOLLECTION_GET_BY_IND(void)
01097   {
01098     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_COLLECTION_GET_BY_IND, 6);
01099     int n = 0;
01100 
01101     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
01102     rd->args[n++].send_rcv = rpc_Send;
01103     rd->args[n].type = OidType;    /* colloid */
01104     rd->args[n++].send_rcv = rpc_Send;
01105     rd->args[n].type = rpc_Int32Type;  /* ind */
01106     rd->args[n++].send_rcv = rpc_Send;
01107     rd->args[n].type = rpc_Int32Type;  /* found */
01108     rd->args[n++].send_rcv = rpc_Rcv;
01109     rd->args[n].type = rpc_DataType;   /* rdata */
01110     rd->args[n++].send_rcv = rpc_Rcv;
01111 
01112     makeSTATUS(rd, n);
01113     return rd;
01114   }
01115 
01116   rpc_RpcDescription *
01117   makeCOLLECTION_GET_BY_VALUE(void)
01118   {
01119     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_COLLECTION_GET_BY_VALUE, 6);
01120     int n = 0;
01121 
01122     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01123     rd->args[n++].send_rcv = rpc_Send;
01124     rd->args[n].type = OidType;
01125     rd->args[n++].send_rcv = rpc_Send;
01126     rd->args[n].type = rpc_DataType;
01127     rd->args[n++].send_rcv = rpc_Send;
01128     rd->args[n].type = rpc_Int32Type;
01129     rd->args[n++].send_rcv = rpc_Rcv;
01130     rd->args[n].type = rpc_Int32Type;
01131     rd->args[n++].send_rcv = rpc_Rcv;
01132 
01133     makeSTATUS(rd, n);
01134     return rd;
01135   }
01136 
01137   rpc_RpcDescription *
01138   makeQUERY_LANG_CREATE(void)
01139   {
01140     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ITERATOR_LANG_CREATE, 6);
01141     int n = 0;
01142 
01143     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
01144     rd->args[n++].send_rcv = rpc_Send;
01145     rd->args[n].type = rpc_DataType;   /* query string */
01146     rd->args[n++].send_rcv = rpc_Send;
01147     rd->args[n].type = rpc_Int32Type;  /* qid */
01148     rd->args[n++].send_rcv = rpc_Rcv;
01149     rd->args[n].type = rpc_Int32Type;  /* count */
01150     rd->args[n++].send_rcv = rpc_Rcv;
01151     rd->args[n].type = rpc_DataType;   /* schema info */
01152     rd->args[n++].send_rcv = rpc_Rcv;
01153 
01154     makeSTATUS(rd, n);
01155     return rd;
01156   }
01157 
01158   rpc_RpcDescription *
01159   makeQUERY_DATABASE_CREATE(void)
01160   {
01161     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ITERATOR_DATABASE_CREATE, 3);
01162     int n = 0;
01163 
01164     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01165     rd->args[n++].send_rcv = rpc_Send;
01166     rd->args[n].type = rpc_Int32Type;
01167     rd->args[n++].send_rcv = rpc_Rcv;
01168 
01169     makeSTATUS(rd, n);
01170     return rd;
01171   }
01172 
01173   rpc_RpcDescription *
01174   makeQUERY_CLASS_CREATE(void)
01175   {
01176     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ITERATOR_CLASS_CREATE, 4);
01177     int n = 0;
01178 
01179     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01180     rd->args[n++].send_rcv = rpc_Send;
01181     rd->args[n].type = OidType;
01182     rd->args[n++].send_rcv = rpc_Send;
01183     rd->args[n].type = rpc_Int32Type;
01184     rd->args[n++].send_rcv = rpc_Rcv;
01185 
01186     makeSTATUS(rd, n);
01187     return rd;
01188   }
01189 
01190   rpc_RpcDescription *
01191   makeQUERY_COLLECTION_CREATE(void)
01192   {
01193     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ITERATOR_COLLECTION_CREATE, 5);
01194     int n = 0;
01195 
01196     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01197     rd->args[n++].send_rcv = rpc_Send;
01198     rd->args[n].type = OidType;
01199     rd->args[n++].send_rcv = rpc_Send;
01200     rd->args[n].type = rpc_Int32Type;
01201     rd->args[n++].send_rcv = rpc_Send; /* index */
01202     rd->args[n].type = rpc_Int32Type;
01203     rd->args[n++].send_rcv = rpc_Rcv;
01204 
01205     makeSTATUS(rd, n);
01206     return rd;
01207   }
01208 
01209   rpc_RpcDescription *
01210   makeSET_OBJECT_LOCK(void)
01211   {
01212     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_SET_OBJECT_LOCK, 4);
01213     int n = 0;
01214 
01215     rd->args[n].type = OidType; /* oid */
01216     rd->args[n++].send_rcv = rpc_Send;
01217     rd->args[n].type = rpc_Int32Type; /* lockmode */
01218     rd->args[n++].send_rcv = rpc_Send;
01219     rd->args[n].type = rpc_Int32Type; /* rlockmode */
01220     rd->args[n++].send_rcv = rpc_Rcv;
01221 
01222     makeSTATUS(rd, n);
01223     return rd;
01224   }
01225 
01226   rpc_RpcDescription *
01227   makeGET_OBJECT_LOCK(void)
01228   {
01229     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_OBJECT_LOCK, 3);
01230     int n = 0;
01231 
01232     rd->args[n].type = OidType; /* oid */
01233     rd->args[n++].send_rcv = rpc_Send;
01234     rd->args[n].type = rpc_Int32Type; /* lockmode */
01235     rd->args[n++].send_rcv = rpc_Rcv;
01236 
01237     makeSTATUS(rd, n);
01238     return rd;
01239   }
01240 
01241   rpc_RpcDescription *
01242   makeQUERY_ATTRIBUTE_CREATE(void)
01243   {
01244     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ITERATOR_ATTRIBUTE_CREATE, 10);
01245     int n = 0;
01246 
01247     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01248     rd->args[n++].send_rcv = rpc_Send;
01249     rd->args[n].type = OidType;   /* cloid */
01250     rd->args[n++].send_rcv = rpc_Send;
01251     rd->args[n].type = rpc_Int32Type; /* num agreg item */
01252     rd->args[n++].send_rcv = rpc_Send;
01253     rd->args[n].type = rpc_Int32Type; /* ind */
01254     rd->args[n++].send_rcv = rpc_Send;
01255 
01256     rd->args[n].type = rpc_DataType;  /* start */
01257     rd->args[n++].send_rcv = rpc_Send;
01258     rd->args[n].type = rpc_DataType;  /* end */
01259     rd->args[n++].send_rcv = rpc_Send;
01260     rd->args[n].type = rpc_Int32Type; /* sexcl */
01261     rd->args[n++].send_rcv = rpc_Send;
01262     rd->args[n].type = rpc_Int32Type; /* eexcl */
01263     rd->args[n++].send_rcv = rpc_Send;
01264 
01265     rd->args[n].type = rpc_Int32Type; /* &qid */
01266     rd->args[n++].send_rcv = rpc_Rcv;
01267 
01268     makeSTATUS(rd, n);
01269     return rd;
01270   }
01271 
01272   rpc_RpcDescription *
01273   makeQUERY_DELETE(void)
01274   {
01275     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ITERATOR_DELETE, 3);
01276     int n = 0;
01277 
01278     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01279     rd->args[n++].send_rcv = rpc_Send;
01280     rd->args[n].type = rpc_Int32Type;
01281     rd->args[n++].send_rcv = rpc_Send;
01282 
01283     makeSTATUS(rd, n);
01284     return rd;
01285   }
01286 
01287   rpc_RpcDescription *
01288   makeQUERY_SCAN_NEXT(void)
01289   {
01290     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_ITERATOR_SCAN_NEXT, 6);
01291     int n = 0;
01292 
01293     rd->args[n].type = rpc_Int32Type; /* rdbhid */
01294     rd->args[n++].send_rcv = rpc_Send;
01295     rd->args[n].type = rpc_Int32Type; /* qid */
01296     rd->args[n++].send_rcv = rpc_Send;
01297     rd->args[n].type = rpc_Int32Type; /* max */
01298     rd->args[n++].send_rcv = rpc_Send;
01299     rd->args[n].type = rpc_Int32Type; /* count */
01300     rd->args[n++].send_rcv = rpc_Rcv;
01301     rd->args[n].type = rpc_DataType;
01302     rd->args[n++].send_rcv = rpc_Rcv;
01303 
01304     makeSTATUS(rd, n);
01305     return rd;
01306   }
01307 
01308   rpc_RpcDescription *
01309   makeOQL_CREATE(void)
01310   {
01311     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OQL_CREATE, 5);
01312     int n = 0;
01313 
01314     rd->args[n].type = rpc_Int32Type; /* dbh */
01315     rd->args[n++].send_rcv = rpc_Send;
01316     rd->args[n].type = rpc_DataType; /* oql */
01317     rd->args[n++].send_rcv = rpc_Send;
01318     rd->args[n].type = rpc_Int32Type; /* qid */
01319     rd->args[n++].send_rcv = rpc_Rcv;
01320     rd->args[n].type = rpc_DataType; /* schinfo */
01321     rd->args[n++].send_rcv = rpc_Rcv;
01322 
01323     makeSTATUS(rd, n);
01324     return rd;
01325   }
01326 
01327   rpc_RpcDescription *
01328   makeOQL_DELETE(void)
01329   {
01330     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OQL_DELETE, 3);
01331     int n = 0;
01332 
01333     rd->args[n].type = rpc_Int32Type; /* dbh */
01334     rd->args[n++].send_rcv = rpc_Send;
01335     rd->args[n].type = rpc_Int32Type; /* qid */
01336     rd->args[n++].send_rcv = rpc_Send;
01337 
01338     makeSTATUS(rd, n);
01339     return rd;
01340   }
01341 
01342   rpc_RpcDescription *
01343   makeOQL_GETRESULT(void)
01344   {
01345     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_OQL_GETRESULT, 4);
01346     int n = 0;
01347 
01348     rd->args[n].type = rpc_Int32Type; /* dbh */
01349     rd->args[n++].send_rcv = rpc_Send;
01350     rd->args[n].type = rpc_Int32Type; /* qid */
01351     rd->args[n++].send_rcv = rpc_Send;
01352     rd->args[n].type = rpc_DataType; /* value */
01353     rd->args[n++].send_rcv = rpc_Rcv;
01354 
01355     makeSTATUS(rd, n);
01356     return rd;
01357   }
01358 
01359   rpc_RpcDescription *
01360   makeEXECUTABLE_EXECUTE(void)
01361   {
01362     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_EXECUTABLE_EXECUTE, 14);
01363     int n = 0;
01364 
01365     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
01366     rd->args[n++].send_rcv = rpc_Send;
01367     rd->args[n].type = rpc_StringType; /* user */
01368     rd->args[n++].send_rcv = rpc_Send;
01369     rd->args[n].type = rpc_StringType; /* passwd */
01370     rd->args[n++].send_rcv = rpc_Send;
01371     rd->args[n].type = rpc_StringType; /* intname */
01372     rd->args[n++].send_rcv = rpc_Send;
01373     rd->args[n].type = rpc_StringType; /* name */
01374     rd->args[n++].send_rcv = rpc_Send;
01375     rd->args[n].type = rpc_Int32Type;  /* exec_type : function/method/trigger */
01376     rd->args[n++].send_rcv = rpc_Send;
01377     rd->args[n].type = OidType;    /* class oid */
01378     rd->args[n++].send_rcv = rpc_Send;
01379     rd->args[n].type = rpc_StringType; /* extref */
01380     rd->args[n++].send_rcv = rpc_Send;
01381     rd->args[n].type = rpc_DataType;   /* signature */
01382     rd->args[n++].send_rcv = rpc_Send;
01383     rd->args[n].type = OidType;    /* executable oid */
01384     rd->args[n++].send_rcv = rpc_Send;
01385     rd->args[n].type = OidType;    /* object oid */
01386     rd->args[n++].send_rcv = rpc_Send;
01387     rd->args[n].type = rpc_DataType;   /* argarray */
01388     rd->args[n++].send_rcv = rpc_Send;
01389 
01390     rd->args[n].type = rpc_DataType;   /* argarray + argret */
01391     rd->args[n++].send_rcv = rpc_Rcv;
01392 
01393     makeSTATUS(rd, n);
01394     return rd;
01395   }
01396 
01397   rpc_RpcDescription *
01398   makeEXECUTABLE_CHECK(void)
01399   {
01400     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_EXECUTABLE_CHECK, 5);
01401     int n = 0;
01402 
01403     rd->args[n].type = rpc_Int32Type;  /* rdbhid */
01404     rd->args[n++].send_rcv = rpc_Send;
01405     rd->args[n].type = rpc_StringType; /* intname */
01406     rd->args[n++].send_rcv = rpc_Send;
01407     rd->args[n].type = OidType;    /* oid */
01408     rd->args[n++].send_rcv = rpc_Send;
01409     rd->args[n].type = rpc_StringType; /* extref */
01410     rd->args[n++].send_rcv = rpc_Send;
01411 
01412     makeSTATUS(rd, n);
01413     return rd;
01414   }
01415 
01416   rpc_RpcDescription *
01417   makeEXECUTABLE_SET_EXTREF_PATH(void)
01418   {
01419     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_EXECUTABLE_SET_EXTREF_PATH, 4);
01420     int n = 0;
01421 
01422     rd->args[n].type = rpc_StringType; /* user */
01423     rd->args[n++].send_rcv = rpc_Send; 
01424     rd->args[n].type = rpc_StringType; /* passwd */
01425     rd->args[n++].send_rcv = rpc_Send;
01426     rd->args[n].type = rpc_StringType; /* path */
01427     rd->args[n++].send_rcv = rpc_Send;
01428 
01429     makeSTATUS(rd, n);
01430     return rd;
01431   }
01432 
01433   rpc_RpcDescription *
01434   makeEXECUTABLE_GET_EXTREF_PATH(void)
01435   {
01436     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_EXECUTABLE_GET_EXTREF_PATH, 4);
01437     int n = 0;
01438 
01439     rd->args[n].type = rpc_StringType; /* user */
01440     rd->args[n++].send_rcv = rpc_Send; 
01441     rd->args[n].type = rpc_StringType; /* passwd */
01442     rd->args[n++].send_rcv = rpc_Send;
01443     rd->args[n].type = rpc_DataType;   /* path */
01444     rd->args[n++].send_rcv = rpc_Rcv;
01445 
01446     makeSTATUS(rd, n);
01447     return rd;
01448   }
01449 
01450   rpc_RpcDescription *
01451   makeSET_CONN_INFO(void)
01452   {
01453     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_SET_CONN_INFO, 10);
01454     int n = 0;
01455 
01456     rd->args[n].type = rpc_StringType; /* hostname */
01457     rd->args[n++].send_rcv = rpc_Send; 
01458     rd->args[n].type = rpc_Int32Type; /* uid */ // no more useful
01459     rd->args[n++].send_rcv = rpc_Send; 
01460     rd->args[n].type = rpc_StringType; /* username */
01461     rd->args[n++].send_rcv = rpc_Send;
01462     rd->args[n].type = rpc_StringType; /* progname */
01463     rd->args[n++].send_rcv = rpc_Send;
01464     rd->args[n].type = rpc_Int32Type; /* pid */
01465     rd->args[n++].send_rcv = rpc_Send;
01466     rd->args[n].type = rpc_Int32Type; /* server pid */
01467     rd->args[n++].send_rcv = rpc_Rcv;
01468     rd->args[n].type = rpc_Int32Type; /* server uid */
01469     rd->args[n++].send_rcv = rpc_Rcv;
01470     rd->args[n].type = rpc_Int32Type; /* server version */
01471     rd->args[n++].send_rcv = rpc_Send;
01472 
01473     rd->args[n].type = rpc_StringType; /* challenge */
01474     rd->args[n++].send_rcv = rpc_Rcv;
01475     makeSTATUS(rd, n);
01476     return rd;
01477   }
01478 
01479   rpc_RpcDescription *
01480   makeCHECK_AUTH(void)
01481   {
01482     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_CHECK_AUTH, 2);
01483     int n = 0;
01484 
01485     rd->args[n].type = rpc_StringType; /*  */
01486     rd->args[n++].send_rcv = rpc_Send;
01487 
01488     makeSTATUS(rd, n);
01489     return rd;
01490   }
01491 
01492   rpc_RpcDescription *
01493   makeSET_LOG_MASK(void)
01494   {
01495     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_SET_LOG_MASK, 2);
01496     int n = 0;
01497 
01498     rd->args[n].type = rpc_Int64Type; /* logmask */
01499     rd->args[n++].send_rcv = rpc_Send;
01500 
01501     makeSTATUS(rd, n);
01502     return rd;
01503   }
01504 
01505   rpc_RpcDescription *
01506   makeGET_DEFAULT_DATASPACE(void)
01507   {
01508     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_DEFAULT_DATASPACE, 3);
01509     int n = 0;
01510 
01511     rd->args[n].type = rpc_Int32Type; /* dbh */
01512     rd->args[n++].send_rcv = rpc_Send;
01513     rd->args[n].type = rpc_Int32Type; /* dspid */
01514     rd->args[n++].send_rcv = rpc_Rcv;
01515 
01516     makeSTATUS(rd, n);
01517     return rd;
01518   }
01519 
01520   rpc_RpcDescription *
01521   makeSET_DEFAULT_DATASPACE(void)
01522   {
01523     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_SET_DEFAULT_DATASPACE, 3);
01524     int n = 0;
01525 
01526     rd->args[n].type = rpc_Int32Type; /* dbh */
01527     rd->args[n++].send_rcv = rpc_Send;
01528     rd->args[n].type = rpc_Int32Type; /* dspid */
01529     rd->args[n++].send_rcv = rpc_Send;
01530 
01531     makeSTATUS(rd, n);
01532     return rd;
01533   }
01534 
01535 
01536   rpc_RpcDescription *
01537   makeDATASPACE_SET_CURRENT_DATAFILE(void)
01538   {
01539     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATASPACE_SET_CURRENT_DATAFILE, 4);
01540     int n = 0;
01541 
01542     rd->args[n].type = rpc_Int32Type; /* dbh */
01543     rd->args[n++].send_rcv = rpc_Send;
01544     rd->args[n].type = rpc_Int32Type; /* dspid */
01545     rd->args[n++].send_rcv = rpc_Send;
01546     rd->args[n].type = rpc_Int32Type; /* datid */
01547     rd->args[n++].send_rcv = rpc_Send;
01548 
01549     makeSTATUS(rd, n);
01550     return rd;
01551   }
01552 
01553   rpc_RpcDescription *
01554   makeDATASPACE_GET_CURRENT_DATAFILE(void)
01555   {
01556     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DATASPACE_GET_CURRENT_DATAFILE, 4);
01557     int n = 0;
01558 
01559     rd->args[n].type = rpc_Int32Type; /* dbh */
01560     rd->args[n++].send_rcv = rpc_Send;
01561     rd->args[n].type = rpc_Int32Type; /* dspid */
01562     rd->args[n++].send_rcv = rpc_Send;
01563     rd->args[n].type = rpc_Int32Type; /* datid */
01564     rd->args[n++].send_rcv = rpc_Rcv;
01565 
01566     makeSTATUS(rd, n);
01567     return rd;
01568   }
01569 
01570   rpc_RpcDescription *
01571   makeGET_DEFAULT_INDEX_DATASPACE(void)
01572   {
01573     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_DEFAULT_INDEX_DATASPACE, 5);
01574     int n = 0;
01575 
01576     rd->args[n].type = rpc_Int32Type; /* dbh */
01577     rd->args[n++].send_rcv = rpc_Send;
01578     rd->args[n].type = OidType;   /* idxoid */
01579     rd->args[n++].send_rcv = rpc_Send;
01580     rd->args[n].type = rpc_Int32Type; /* type */
01581     rd->args[n++].send_rcv = rpc_Send;
01582     rd->args[n].type = rpc_Int32Type; /* dspid */
01583     rd->args[n++].send_rcv = rpc_Rcv;
01584 
01585     makeSTATUS(rd, n);
01586     return rd;
01587   }
01588 
01589   rpc_RpcDescription *
01590   makeSET_DEFAULT_INDEX_DATASPACE(void)
01591   {
01592     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_SET_DEFAULT_INDEX_DATASPACE, 5);
01593     int n = 0;
01594 
01595     rd->args[n].type = rpc_Int32Type; /* dbh */
01596     rd->args[n++].send_rcv = rpc_Send;
01597     rd->args[n].type = OidType;   /* idxoid */
01598     rd->args[n++].send_rcv = rpc_Send;
01599     rd->args[n].type = rpc_Int32Type; /* tyoe */
01600     rd->args[n++].send_rcv = rpc_Send;
01601     rd->args[n].type = rpc_Int32Type; /* dspid */
01602     rd->args[n++].send_rcv = rpc_Send;
01603 
01604     makeSTATUS(rd, n);
01605     return rd;
01606   }
01607 
01608   rpc_RpcDescription *
01609   makeGET_INDEX_LOCATIONS(void)
01610   {
01611     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_INDEX_LOCATIONS, 5);
01612     int n = 0;
01613 
01614     rd->args[n].type = rpc_Int32Type; /* dbh */
01615     rd->args[n++].send_rcv = rpc_Send;
01616     rd->args[n].type = OidType;   /* idxoid */
01617     rd->args[n++].send_rcv = rpc_Send;
01618     rd->args[n].type = rpc_Int32Type; /* type */
01619     rd->args[n++].send_rcv = rpc_Send;
01620     rd->args[n].type = rpc_DataType;  /* objlocs */
01621     rd->args[n++].send_rcv = rpc_Rcv;
01622 
01623     makeSTATUS(rd, n);
01624     return rd;
01625   }
01626 
01627   rpc_RpcDescription *
01628   makeMOVE_INDEX(void)
01629   {
01630     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_MOVE_INDEX, 5);
01631     int n = 0;
01632 
01633     rd->args[n].type = rpc_Int32Type; /* dbh */
01634     rd->args[n++].send_rcv = rpc_Send;
01635     rd->args[n].type = OidType;   /* idxoid */
01636     rd->args[n++].send_rcv = rpc_Send;
01637     rd->args[n].type = rpc_Int32Type; /* type */
01638     rd->args[n++].send_rcv = rpc_Send;
01639     rd->args[n].type = rpc_Int32Type; /* dspid */
01640     rd->args[n++].send_rcv = rpc_Send;
01641 
01642     makeSTATUS(rd, n);
01643     return rd;
01644   }
01645 
01646   rpc_RpcDescription *
01647   makeGET_INSTANCE_CLASS_LOCATIONS(void)
01648   {
01649     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_INSTANCE_CLASS_LOCATIONS, 5);
01650     int n = 0;
01651 
01652     rd->args[n].type = rpc_Int32Type; /* dbh */
01653     rd->args[n++].send_rcv = rpc_Send;
01654     rd->args[n].type = OidType;   /* clsoid */
01655     rd->args[n++].send_rcv = rpc_Send;
01656     rd->args[n].type = rpc_Int32Type; /* subclasses */
01657     rd->args[n++].send_rcv = rpc_Send;
01658     rd->args[n].type = rpc_DataType;  /* objlocs */
01659     rd->args[n++].send_rcv = rpc_Rcv;
01660 
01661     makeSTATUS(rd, n);
01662     return rd;
01663   }
01664 
01665   rpc_RpcDescription *
01666   makeMOVE_INSTANCE_CLASS(void)
01667   {
01668     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_MOVE_INSTANCE_CLASS, 5);
01669     int n = 0;
01670 
01671     rd->args[n].type = rpc_Int32Type; /* dbh */
01672     rd->args[n++].send_rcv = rpc_Send;
01673     rd->args[n].type = OidType;   /* clsoid */
01674     rd->args[n++].send_rcv = rpc_Send;
01675     rd->args[n].type = rpc_Int32Type; /* subclasses */
01676     rd->args[n++].send_rcv = rpc_Send;
01677     rd->args[n].type = rpc_Int32Type; /* dspid */
01678     rd->args[n++].send_rcv = rpc_Send;
01679 
01680     makeSTATUS(rd, n);
01681     return rd;
01682   }
01683 
01684   rpc_RpcDescription *
01685   makeGET_OBJECTS_LOCATIONS(void)
01686   {
01687     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_OBJECTS_LOCATIONS, 4);
01688     int n = 0;
01689 
01690     rd->args[n].type = rpc_Int32Type; /* dbh */
01691     rd->args[n++].send_rcv = rpc_Send;
01692     rd->args[n].type = rpc_DataType; /* oids */
01693     rd->args[n++].send_rcv = rpc_Send;
01694     rd->args[n].type = rpc_DataType; /* objlocs */
01695     rd->args[n++].send_rcv = rpc_Rcv;
01696 
01697     makeSTATUS(rd, n);
01698     return rd;
01699   }
01700 
01701   rpc_RpcDescription *
01702   makeMOVE_OBJECTS(void)
01703   {
01704     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_MOVE_OBJECTS, 4);
01705     int n = 0;
01706 
01707     rd->args[n].type = rpc_Int32Type; /* dbh */
01708     rd->args[n++].send_rcv = rpc_Send;
01709     rd->args[n].type = rpc_DataType;  /* oids */
01710     rd->args[n++].send_rcv = rpc_Send;
01711     rd->args[n].type = rpc_Int32Type; /* dspid */
01712     rd->args[n++].send_rcv = rpc_Send;
01713 
01714     makeSTATUS(rd, n);
01715     return rd;
01716   }
01717 
01718   rpc_RpcDescription *
01719   makeGET_ATTRIBUTE_LOCATIONS(void)
01720   {
01721     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_ATTRIBUTE_LOCATIONS, 5);
01722     int n = 0;
01723 
01724     rd->args[n].type = rpc_Int32Type; /* dbh */
01725     rd->args[n++].send_rcv = rpc_Send;
01726     rd->args[n].type = OidType;  /* clsoid */
01727     rd->args[n++].send_rcv = rpc_Send;
01728     rd->args[n].type = rpc_Int32Type; /* attrnum */
01729     rd->args[n++].send_rcv = rpc_Send;
01730     rd->args[n].type = rpc_DataType; /* objlocs */
01731     rd->args[n++].send_rcv = rpc_Rcv;
01732 
01733     makeSTATUS(rd, n);
01734     return rd;
01735   }
01736 
01737   rpc_RpcDescription *
01738   makeMOVE_ATTRIBUTE(void)
01739   {
01740     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_MOVE_ATTRIBUTE, 5);
01741     int n = 0;
01742 
01743     rd->args[n].type = rpc_Int32Type; /* dbh */
01744     rd->args[n++].send_rcv = rpc_Send;
01745     rd->args[n].type = OidType; /* clsoid */
01746     rd->args[n++].send_rcv = rpc_Send;
01747     rd->args[n].type = rpc_Int32Type; /* attrnum */
01748     rd->args[n++].send_rcv = rpc_Send;
01749     rd->args[n].type = rpc_Int32Type; /* dspid */
01750     rd->args[n++].send_rcv = rpc_Send;
01751 
01752     makeSTATUS(rd, n);
01753     return rd;
01754   }
01755 
01756   rpc_RpcDescription *
01757   makeCREATE_DATAFILE(void)
01758   {
01759     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_CREATE_DATAFILE, 7);
01760     int n = 0;
01761 
01762     rd->args[n].type = rpc_Int32Type; /* dbh */
01763     rd->args[n++].send_rcv = rpc_Send;
01764     rd->args[n].type = rpc_StringType; /* datfile */
01765     rd->args[n++].send_rcv = rpc_Send;
01766     rd->args[n].type = rpc_StringType; /* name */
01767     rd->args[n++].send_rcv = rpc_Send;
01768     rd->args[n].type = rpc_Int32Type; /* maxsize */
01769     rd->args[n++].send_rcv = rpc_Send;
01770     rd->args[n].type = rpc_Int32Type; /* slotsize */
01771     rd->args[n++].send_rcv = rpc_Send;
01772     rd->args[n].type = rpc_Int32Type; /* dtype */
01773     rd->args[n++].send_rcv = rpc_Send;
01774 
01775     makeSTATUS(rd, n);
01776     return rd;
01777   }
01778 
01779   rpc_RpcDescription *
01780   makeDELETE_DATAFILE(void)
01781   {
01782     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DELETE_DATAFILE, 3);
01783     int n = 0;
01784 
01785     rd->args[n].type = rpc_Int32Type; /* dbh */
01786     rd->args[n++].send_rcv = rpc_Send;
01787     rd->args[n].type = rpc_Int32Type; /* datid */
01788     rd->args[n++].send_rcv = rpc_Send;
01789 
01790     makeSTATUS(rd, n);
01791     return rd;
01792   }
01793 
01794   rpc_RpcDescription *
01795   makeMOVE_DATAFILE(void)
01796   {
01797     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_MOVE_DATAFILE, 4);
01798     int n = 0;
01799 
01800     rd->args[n].type = rpc_Int32Type; /* dbh */
01801     rd->args[n++].send_rcv = rpc_Send;
01802     rd->args[n].type = rpc_Int32Type; /* datid */
01803     rd->args[n++].send_rcv = rpc_Send;
01804     rd->args[n].type = rpc_StringType; /* datafile */
01805     rd->args[n++].send_rcv = rpc_Send;
01806 
01807     makeSTATUS(rd, n);
01808     return rd;
01809   }
01810 
01811   rpc_RpcDescription *
01812   makeDEFRAGMENT_DATAFILE(void)
01813   {
01814     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DEFRAGMENT_DATAFILE, 3);
01815     int n = 0;
01816 
01817     rd->args[n].type = rpc_Int32Type; /* dbh */
01818     rd->args[n++].send_rcv = rpc_Send;
01819     rd->args[n].type = rpc_Int32Type; /* datid */
01820     rd->args[n++].send_rcv = rpc_Send;
01821 
01822     makeSTATUS(rd, n);
01823     return rd;
01824   }
01825 
01826   rpc_RpcDescription *
01827   makeRESIZE_DATAFILE(void)
01828   {
01829     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_RESIZE_DATAFILE, 4);
01830     int n = 0;
01831 
01832     rd->args[n].type = rpc_Int32Type; /* dbh */
01833     rd->args[n++].send_rcv = rpc_Send;
01834     rd->args[n].type = rpc_Int32Type; /* datid */
01835     rd->args[n++].send_rcv = rpc_Send;
01836     rd->args[n].type = rpc_Int32Type; /* size */
01837     rd->args[n++].send_rcv = rpc_Send;
01838 
01839     makeSTATUS(rd, n);
01840     return rd;
01841   }
01842 
01843   rpc_RpcDescription *
01844   makeGET_DATAFILEI_NFO(void)
01845   {
01846     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_DATAFILEI_NFO, 4);
01847     int n = 0;
01848 
01849     rd->args[n].type = rpc_Int32Type; /* dbh */
01850     rd->args[n++].send_rcv = rpc_Send;
01851     rd->args[n].type = rpc_Int32Type; /* datid */
01852     rd->args[n++].send_rcv = rpc_Send;
01853     rd->args[n].type = rpc_DataType; /* info */
01854     rd->args[n++].send_rcv = rpc_Rcv;
01855 
01856     makeSTATUS(rd, n);
01857     return rd;
01858   }
01859 
01860   rpc_RpcDescription *
01861   makeRENAME_DATAFILE(void)
01862   {
01863     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_RENAME_DATAFILE, 4);
01864     int n = 0;
01865 
01866     rd->args[n].type = rpc_Int32Type; /* dbh */
01867     rd->args[n++].send_rcv = rpc_Send;
01868     rd->args[n].type = rpc_Int32Type; /* datid */
01869     rd->args[n++].send_rcv = rpc_Send;
01870     rd->args[n].type = rpc_StringType; /* name */
01871     rd->args[n++].send_rcv = rpc_Send;
01872 
01873     makeSTATUS(rd, n);
01874     return rd;
01875   }
01876 
01877   rpc_RpcDescription *
01878   makeCREATE_DATASPACE(void)
01879   {
01880     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_CREATE_DATASPACE, 4);
01881     int n = 0;
01882 
01883     rd->args[n].type = rpc_Int32Type; /* dbh */
01884     rd->args[n++].send_rcv = rpc_Send;
01885     rd->args[n].type = rpc_StringType; /* dspname */
01886     rd->args[n++].send_rcv = rpc_Send;
01887     rd->args[n].type = rpc_DataType; /* datids */
01888     rd->args[n++].send_rcv = rpc_Send;
01889 
01890     makeSTATUS(rd, n);
01891     return rd;
01892   }
01893 
01894   rpc_RpcDescription *
01895   makeUPDATE_DATASPACE(void)
01896   {
01897     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_UPDATE_DATASPACE, 4);
01898     int n = 0;
01899 
01900     rd->args[n].type = rpc_Int32Type; /* dbh */
01901     rd->args[n++].send_rcv = rpc_Send;
01902     rd->args[n].type = rpc_Int32Type; /* dspid */
01903     rd->args[n++].send_rcv = rpc_Send;
01904     rd->args[n].type = rpc_DataType; /* datids */
01905     rd->args[n++].send_rcv = rpc_Send;
01906 
01907     makeSTATUS(rd, n);
01908     return rd;
01909   }
01910 
01911   rpc_RpcDescription *
01912   makeDELETE_DATASPACE(void)
01913   {
01914     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_DELETE_DATASPACE, 3);
01915     int n = 0;
01916 
01917     rd->args[n].type = rpc_Int32Type; /* dbh */
01918     rd->args[n++].send_rcv = rpc_Send;
01919     rd->args[n].type = rpc_Int32Type; /* dspid */
01920     rd->args[n++].send_rcv = rpc_Send;
01921 
01922     makeSTATUS(rd, n);
01923     return rd;
01924   }
01925 
01926   rpc_RpcDescription *
01927   makeRENAME_DATASPACE(void)
01928   {
01929     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_RENAME_DATASPACE, 4);
01930     int n = 0;
01931 
01932     rd->args[n].type = rpc_Int32Type; /* dbh */
01933     rd->args[n++].send_rcv = rpc_Send;
01934     rd->args[n].type = rpc_Int32Type; /* dspid */
01935     rd->args[n++].send_rcv = rpc_Send;
01936     rd->args[n].type = rpc_StringType; /* name */
01937     rd->args[n++].send_rcv = rpc_Send;
01938 
01939     makeSTATUS(rd, n);
01940     return rd;
01941   }
01942 
01943   rpc_RpcDescription *
01944   makeINDEX_GET_COUNT(void)
01945   {
01946     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_INDEX_GET_COUNT, 4);
01947     int n = 0;
01948 
01949     rd->args[n].type = rpc_Int32Type; /* dbh */
01950     rd->args[n++].send_rcv = rpc_Send;
01951     rd->args[n].type = OidType; /* idxoid */
01952     rd->args[n++].send_rcv = rpc_Send;
01953     rd->args[n].type = rpc_Int32Type; /* cnt */
01954     rd->args[n++].send_rcv = rpc_Rcv;
01955 
01956     makeSTATUS(rd, n);
01957     return rd;
01958   }
01959 
01960   rpc_RpcDescription *
01961   makeINDEX_GET_STATS(void)
01962   {
01963     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_INDEX_GET_STATS, 4);
01964     int n = 0;
01965 
01966     rd->args[n].type = rpc_Int32Type; /* dbh */
01967     rd->args[n++].send_rcv = rpc_Send;
01968     rd->args[n].type = OidType; /* idxoid */
01969     rd->args[n++].send_rcv = rpc_Send;
01970     rd->args[n].type = rpc_DataType; /* stats */
01971     rd->args[n++].send_rcv = rpc_Rcv;
01972 
01973     makeSTATUS(rd, n);
01974     return rd;
01975   }
01976 
01977   rpc_RpcDescription *
01978   makeINDEX_SIMUL_STATS(void)
01979   {
01980     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_INDEX_SIMUL_STATS, 5);
01981     int n = 0;
01982 
01983     rd->args[n].type = rpc_Int32Type; /* dbh */
01984     rd->args[n++].send_rcv = rpc_Send;
01985     rd->args[n].type = OidType; /* idxoid */
01986     rd->args[n++].send_rcv = rpc_Send;
01987     rd->args[n].type = rpc_DataType; /* impl */
01988     rd->args[n++].send_rcv = rpc_Send;
01989     rd->args[n].type = rpc_DataType; /* stats */
01990     rd->args[n++].send_rcv = rpc_Rcv;
01991 
01992     makeSTATUS(rd, n);
01993     return rd;
01994   }
01995 
01996   rpc_RpcDescription *
01997   makeCOLLECTION_GET_IMPLSTATS(void)
01998   {
01999     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_COLLECTION_GET_IMPLSTATS, 5);
02000     int n = 0;
02001 
02002     rd->args[n].type = rpc_Int32Type; /* dbh */
02003     rd->args[n++].send_rcv = rpc_Send;
02004     rd->args[n].type = rpc_Int32Type; /* idxtype */
02005     rd->args[n++].send_rcv = rpc_Send;
02006     rd->args[n].type = OidType; /* idxoid */
02007     rd->args[n++].send_rcv = rpc_Send;
02008     rd->args[n].type = rpc_DataType; /* stats */
02009     rd->args[n++].send_rcv = rpc_Rcv;
02010 
02011     makeSTATUS(rd, n);
02012     return rd;
02013   }
02014 
02015   rpc_RpcDescription *
02016   makeCOLLECTION_SIMUL_IMPLSTATS(void)
02017   {
02018     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_COLLECTION_SIMUL_IMPLSTATS, 6);
02019     int n = 0;
02020 
02021     rd->args[n].type = rpc_Int32Type; /* dbh */
02022     rd->args[n++].send_rcv = rpc_Send;
02023     rd->args[n].type = rpc_Int32Type; /* idxtype */
02024     rd->args[n++].send_rcv = rpc_Send;
02025     rd->args[n].type = OidType; /* idxoid */
02026     rd->args[n++].send_rcv = rpc_Send;
02027     rd->args[n].type = rpc_DataType; /* impl */
02028     rd->args[n++].send_rcv = rpc_Send;
02029     rd->args[n].type = rpc_DataType; /* stats */
02030     rd->args[n++].send_rcv = rpc_Rcv;
02031 
02032     makeSTATUS(rd, n);
02033     return rd;
02034   }
02035 
02036   rpc_RpcDescription *
02037   makeINDEX_GET_IMPL(void)
02038   {
02039     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_INDEX_GET_IMPL, 4);
02040     int n = 0;
02041 
02042     rd->args[n].type = rpc_Int32Type; /* dbh */
02043     rd->args[n++].send_rcv = rpc_Send;
02044     rd->args[n].type = OidType; /* idxoid */
02045     rd->args[n++].send_rcv = rpc_Send;
02046     rd->args[n].type = rpc_DataType; /* impl */
02047     rd->args[n++].send_rcv = rpc_Rcv;
02048 
02049     makeSTATUS(rd, n);
02050     return rd;
02051   }
02052 
02053   rpc_RpcDescription *
02054   makeCOLLECTION_GET_IMPL(void)
02055   {
02056     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_COLLECTION_GET_IMPL, 5);
02057     int n = 0;
02058 
02059     rd->args[n].type = rpc_Int32Type; /* dbh */
02060     rd->args[n++].send_rcv = rpc_Send;
02061     rd->args[n].type = rpc_Int32Type; /* idxtype */
02062     rd->args[n++].send_rcv = rpc_Send;
02063     rd->args[n].type = OidType; /* idxoid */
02064     rd->args[n++].send_rcv = rpc_Send;
02065     rd->args[n].type = rpc_DataType; /* impl */
02066     rd->args[n++].send_rcv = rpc_Rcv;
02067 
02068     makeSTATUS(rd, n);
02069     return rd;
02070   }
02071 
02072   rpc_RpcDescription *
02073   makeGET_SERVER_OUTOFBAND_DATA(void)
02074   {
02075     rpc_RpcDescription *rd = rpc_newRpcDescription(IDB_GET_SERVER_OUTOFBAND_DATA, 3);
02076     int n = 0;
02077 
02078     rd->args[n].type = rpc_Int32Type; /* type */
02079     rd->args[n++].send_rcv = (rpc_SendRcv)(rpc_Send|rpc_Rcv);
02080     rd->args[n].type = rpc_DataType; /* msg */
02081     rd->args[n++].send_rcv = rpc_Rcv;
02082 
02083     makeSTATUS(rd, n);
02084     return rd;
02085   }
02086 
02087   static RPCStatusRec status;
02088 
02089   RPCStatus
02090   rpcStatusMake_se(eyedbsm::Status status)
02091   {
02092     if (!status)
02093       return RPCSuccess;
02094 
02095     return rpcStatusMake((Error)status->err, status->err_msg);
02096   }
02097 
02098   RPCStatus
02099   rpcStatusMake(Error err, const char *fmt, ...)
02100   {
02101     va_list ap, aq;
02102     va_start(ap, fmt);
02103     va_copy(aq, ap);
02104 
02105     static char *err_msg;
02106     static int err_msg_len;
02107     char *buf;
02108 
02109     buf = eyedblib::getFBuffer(fmt, ap);
02110 
02111     vsprintf(buf, fmt, aq);
02112 
02113     status.err = err;
02114     strncpy(status.err_msg, buf, sizeof(status.err_msg)-1);
02115     status.err_msg[sizeof(status.err_msg)-1] = 0;
02116     va_end(ap);
02117 
02118     return &status;
02119   }
02120 
02121   RPCStatus
02122   rpcStatusMake_s(Error err)
02123   {
02124     status.err = err;
02125     strcpy(status.err_msg, "");
02126 
02127     return &status;
02128   }
02129 }

Generated on Mon Dec 22 18:16:07 2008 for eyedb by  doxygen 1.5.3