IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2009, 2:29:20 PM (17 years ago)
Author:
jhoblitt
Message:

add nebChmod()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/nebclient/src/soapC.c

    r23935 r24289  
    1212#endif
    1313
    14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-04-20 22:15:22 GMT")
     14SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-06-01 23:55:50 GMT")
    1515
    1616
     
    161161        case SOAP_TYPE_int:
    162162                return soap_in_int(soap, NULL, NULL, "xsd:int");
     163        case SOAP_TYPE_ns1__chmod_USCOREobject:
     164                return soap_in_ns1__chmod_USCOREobject(soap, NULL, NULL, "ns1:chmod_object");
     165        case SOAP_TYPE_ns1__chmod_USCOREobjectResponse:
     166                return soap_in_ns1__chmod_USCOREobjectResponse(soap, NULL, NULL, "ns1:chmod_objectResponse");
    163167        case SOAP_TYPE_ns1__stat_USCOREobject:
    164168                return soap_in_ns1__stat_USCOREobject(soap, NULL, NULL, "ns1:stat_object");
     
    250254                        return soap_in_int(soap, NULL, NULL, NULL);
    251255                }
     256                if (!soap_match_tag(soap, t, "ns1:chmod_object"))
     257                {       *type = SOAP_TYPE_ns1__chmod_USCOREobject;
     258                        return soap_in_ns1__chmod_USCOREobject(soap, NULL, NULL, NULL);
     259                }
     260                if (!soap_match_tag(soap, t, "ns1:chmod_objectResponse"))
     261                {       *type = SOAP_TYPE_ns1__chmod_USCOREobjectResponse;
     262                        return soap_in_ns1__chmod_USCOREobjectResponse(soap, NULL, NULL, NULL);
     263                }
    252264                if (!soap_match_tag(soap, t, "ns1:stat_object"))
    253265                {       *type = SOAP_TYPE_ns1__stat_USCOREobject;
     
    440452        case SOAP_TYPE_int:
    441453                return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int");
     454        case SOAP_TYPE_ns1__chmod_USCOREobject:
     455                return soap_out_ns1__chmod_USCOREobject(soap, tag, id, (const struct ns1__chmod_USCOREobject *)ptr, "ns1:chmod_object");
     456        case SOAP_TYPE_ns1__chmod_USCOREobjectResponse:
     457                return soap_out_ns1__chmod_USCOREobjectResponse(soap, tag, id, (const struct ns1__chmod_USCOREobjectResponse *)ptr, "ns1:chmod_objectResponse");
    442458        case SOAP_TYPE_ns1__stat_USCOREobject:
    443459                return soap_out_ns1__stat_USCOREobject(soap, tag, id, (const struct ns1__stat_USCOREobject *)ptr, "ns1:stat_object");
     
    527543        switch (type)
    528544        {
     545        case SOAP_TYPE_ns1__chmod_USCOREobject:
     546                soap_serialize_ns1__chmod_USCOREobject(soap, (const struct ns1__chmod_USCOREobject *)ptr);
     547                break;
     548        case SOAP_TYPE_ns1__chmod_USCOREobjectResponse:
     549                soap_serialize_ns1__chmod_USCOREobjectResponse(soap, (const struct ns1__chmod_USCOREobjectResponse *)ptr);
     550                break;
    529551        case SOAP_TYPE_ns1__stat_USCOREobject:
    530552                soap_serialize_ns1__stat_USCOREobject(soap, (const struct ns1__stat_USCOREobject *)ptr);
     
    11951217#endif
    11961218
     1219SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobject(struct soap *soap, struct ns1__chmod_USCOREobject *a)
     1220{
     1221        (void)soap; (void)a; /* appease -Wall -Werror */
     1222        soap_default_string(soap, &a->key);
     1223        soap_default_int(soap, &a->mode);
     1224}
     1225
     1226SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobject(struct soap *soap, const struct ns1__chmod_USCOREobject *a)
     1227{
     1228        (void)soap; (void)a; /* appease -Wall -Werror */
     1229        soap_serialize_string(soap, &a->key);
     1230        soap_embedded(soap, &a->mode, SOAP_TYPE_int);
     1231}
     1232
     1233SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobject(struct soap *soap, const struct ns1__chmod_USCOREobject *a, const char *tag, const char *type)
     1234{
     1235        register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__chmod_USCOREobject);
     1236        if (soap_out_ns1__chmod_USCOREobject(soap, tag, id, a, type))
     1237                return soap->error;
     1238        return soap_putindependent(soap);
     1239}
     1240
     1241SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobject(struct soap *soap, const char *tag, int id, const struct ns1__chmod_USCOREobject *a, const char *type)
     1242{
     1243        if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__chmod_USCOREobject), type))
     1244                return soap->error;
     1245        if (soap_out_string(soap, "key", -1, &a->key, ""))
     1246                return soap->error;
     1247        if (soap_out_int(soap, "mode", -1, &a->mode, ""))
     1248                return soap->error;
     1249        return soap_element_end_out(soap, tag);
     1250}
     1251
     1252SOAP_FMAC3 struct ns1__chmod_USCOREobject * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobject(struct soap *soap, struct ns1__chmod_USCOREobject *p, const char *tag, const char *type)
     1253{
     1254        if ((p = soap_in_ns1__chmod_USCOREobject(soap, tag, p, type)))
     1255                if (soap_getindependent(soap))
     1256                        return NULL;
     1257        return p;
     1258}
     1259
     1260SOAP_FMAC3 struct ns1__chmod_USCOREobject * SOAP_FMAC4 soap_in_ns1__chmod_USCOREobject(struct soap *soap, const char *tag, struct ns1__chmod_USCOREobject *a, const char *type)
     1261{
     1262        size_t soap_flag_key = 1;
     1263        size_t soap_flag_mode = 1;
     1264        if (soap_element_begin_in(soap, tag, 0, type))
     1265                return NULL;
     1266        a = (struct ns1__chmod_USCOREobject *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__chmod_USCOREobject, sizeof(struct ns1__chmod_USCOREobject), 0, NULL, NULL, NULL);
     1267        if (!a)
     1268                return NULL;
     1269        soap_default_ns1__chmod_USCOREobject(soap, a);
     1270        if (soap->body && !*soap->href)
     1271        {
     1272                for (;;)
     1273                {       soap->error = SOAP_TAG_MISMATCH;
     1274                        if (soap_flag_key && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
     1275                                if (soap_in_string(soap, "key", &a->key, "xsd:string"))
     1276                                {       soap_flag_key--;
     1277                                        continue;
     1278                                }
     1279                        if (soap_flag_mode && soap->error == SOAP_TAG_MISMATCH)
     1280                                if (soap_in_int(soap, "mode", &a->mode, "xsd:int"))
     1281                                {       soap_flag_mode--;
     1282                                        continue;
     1283                                }
     1284                        if (soap->error == SOAP_TAG_MISMATCH)
     1285                                soap->error = soap_ignore_element(soap);
     1286                        if (soap->error == SOAP_NO_TAG)
     1287                                break;
     1288                        if (soap->error)
     1289                                return NULL;
     1290                }
     1291                if (soap_element_end_in(soap, tag))
     1292                        return NULL;
     1293        }
     1294        else
     1295        {       a = (struct ns1__chmod_USCOREobject *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__chmod_USCOREobject, 0, sizeof(struct ns1__chmod_USCOREobject), 0, NULL);
     1296                if (soap->body && soap_element_end_in(soap, tag))
     1297                        return NULL;
     1298        }
     1299        if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_mode > 0))
     1300        {       soap->error = SOAP_OCCURS;
     1301                return NULL;
     1302        }
     1303        return a;
     1304}
     1305
     1306SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobjectResponse(struct soap *soap, struct ns1__chmod_USCOREobjectResponse *a)
     1307{
     1308        (void)soap; (void)a; /* appease -Wall -Werror */
     1309        a->result = NULL;
     1310}
     1311
     1312SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobjectResponse(struct soap *soap, const struct ns1__chmod_USCOREobjectResponse *a)
     1313{
     1314        (void)soap; (void)a; /* appease -Wall -Werror */
     1315        soap_serialize_PointerToint(soap, &a->result);
     1316}
     1317
     1318SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobjectResponse(struct soap *soap, const struct ns1__chmod_USCOREobjectResponse *a, const char *tag, const char *type)
     1319{
     1320        register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__chmod_USCOREobjectResponse);
     1321        if (soap_out_ns1__chmod_USCOREobjectResponse(soap, tag, id, a, type))
     1322                return soap->error;
     1323        return soap_putindependent(soap);
     1324}
     1325
     1326SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobjectResponse(struct soap *soap, const char *tag, int id, const struct ns1__chmod_USCOREobjectResponse *a, const char *type)
     1327{
     1328        if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__chmod_USCOREobjectResponse), type))
     1329                return soap->error;
     1330        if (soap_out_PointerToint(soap, "result", -1, &a->result, ""))
     1331                return soap->error;
     1332        return soap_element_end_out(soap, tag);
     1333}
     1334
     1335SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobjectResponse(struct soap *soap, struct ns1__chmod_USCOREobjectResponse *p, const char *tag, const char *type)
     1336{
     1337        if ((p = soap_in_ns1__chmod_USCOREobjectResponse(soap, tag, p, type)))
     1338                if (soap_getindependent(soap))
     1339                        return NULL;
     1340        return p;
     1341}
     1342
     1343SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__chmod_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__chmod_USCOREobjectResponse *a, const char *type)
     1344{
     1345        size_t soap_flag_result = 1;
     1346        if (soap_element_begin_in(soap, tag, 0, type))
     1347                return NULL;
     1348        a = (struct ns1__chmod_USCOREobjectResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__chmod_USCOREobjectResponse, sizeof(struct ns1__chmod_USCOREobjectResponse), 0, NULL, NULL, NULL);
     1349        if (!a)
     1350                return NULL;
     1351        soap_default_ns1__chmod_USCOREobjectResponse(soap, a);
     1352        if (soap->body && !*soap->href)
     1353        {
     1354                for (;;)
     1355                {       soap->error = SOAP_TAG_MISMATCH;
     1356                        if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH)
     1357                                if (soap_in_PointerToint(soap, "result", &a->result, "xsd:int"))
     1358                                {       soap_flag_result--;
     1359                                        continue;
     1360                                }
     1361                        if (soap->error == SOAP_TAG_MISMATCH)
     1362                                soap->error = soap_ignore_element(soap);
     1363                        if (soap->error == SOAP_NO_TAG)
     1364                                break;
     1365                        if (soap->error)
     1366                                return NULL;
     1367                }
     1368                if (soap_element_end_in(soap, tag))
     1369                        return NULL;
     1370        }
     1371        else
     1372        {       a = (struct ns1__chmod_USCOREobjectResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__chmod_USCOREobjectResponse, 0, sizeof(struct ns1__chmod_USCOREobjectResponse), 0, NULL);
     1373                if (soap->body && soap_element_end_in(soap, tag))
     1374                        return NULL;
     1375        }
     1376        return a;
     1377}
     1378
    11971379SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__stat_USCOREobject(struct soap *soap, struct ns1__stat_USCOREobject *a)
    11981380{
Note: See TracChangeset for help on using the changeset viewer.