From e2ce32ab4a2f7b155324a88ccd1c58e6777b8512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Fri, 12 Dec 2014 20:25:00 +0100 Subject: [PATCH] Version 14.36 --- Makefile | 2 +- soap/soapC.c | 11292 -------------------- soap/soapC.o | Bin 351904 -> 0 bytes soap/soapH.h | 2404 ----- soap/soapServer.c | 1064 -- soap/soapServer.o | Bin 44056 -> 0 bytes soap/soapServerLib.c | 20 - soap/soapStub.h | 1047 -- soap/swad.createAccount.req.xml | 17 - soap/swad.createAccount.res.xml | 14 - soap/swad.getAttendanceEvents.req.xml | 14 - soap/swad.getAttendanceEvents.res.xml | 29 - soap/swad.getAttendanceUsers.req.xml | 14 - soap/swad.getAttendanceUsers.res.xml | 25 - soap/swad.getCourseInfo.req.xml | 15 - soap/swad.getCourseInfo.res.xml | 14 - soap/swad.getCourses.req.xml | 13 - soap/swad.getCourses.res.xml | 21 - soap/swad.getDirectoryTree.req.xml | 16 - soap/swad.getDirectoryTree.res.xml | 13 - soap/swad.getFile.req.xml | 14 - soap/swad.getFile.res.xml | 19 - soap/swad.getGroupTypes.req.xml | 14 - soap/swad.getGroupTypes.res.xml | 22 - soap/swad.getGroups.req.xml | 14 - soap/swad.getGroups.res.xml | 26 - soap/swad.getMarks.req.xml | 14 - soap/swad.getMarks.res.xml | 13 - soap/swad.getNewPassword.req.xml | 14 - soap/swad.getNewPassword.res.xml | 13 - soap/swad.getNotifications.req.xml | 14 - soap/swad.getNotifications.res.xml | 30 - soap/swad.getTestConfig.req.xml | 14 - soap/swad.getTestConfig.res.xml | 18 - soap/swad.getTests.req.xml | 15 - soap/swad.getTests.res.xml | 43 - soap/swad.getUsers.req.xml | 16 - soap/swad.getUsers.res.xml | 24 - soap/swad.loginBySessionKey.req.xml | 14 - soap/swad.loginBySessionKey.res.xml | 28 - soap/swad.loginByUserPasswordKey.req.xml | 15 - soap/swad.loginByUserPasswordKey.res.xml | 22 - soap/swad.markNotificationsAsRead.req.xml | 14 - soap/swad.markNotificationsAsRead.res.xml | 13 - soap/swad.nsmap | 11 - soap/swad.sendAttendanceEvent.req.xml | 22 - soap/swad.sendAttendanceEvent.res.xml | 13 - soap/swad.sendAttendanceUsers.req.xml | 16 - soap/swad.sendAttendanceUsers.res.xml | 14 - soap/swad.sendMessage.req.xml | 17 - soap/swad.sendMessage.res.xml | 24 - soap/swad.sendMyGroups.req.xml | 15 - soap/swad.sendMyGroups.res.xml | 27 - soap/swad.sendNotice.req.xml | 15 - soap/swad.sendNotice.res.xml | 13 - soap/swad.wsdl | 1213 --- soap/swad.xsd | 673 -- swad_action.c | 2 +- swad_announcement.c | 4 +- swad_changelog.h | 6 +- swad_connected.c | 2 +- swad_enrollment.c | 237 +- swad_enrollment.h | 11 +- swad_forum.c | 24 +- swad_record.c | 2 +- swad_role.c | 435 + swad_role.h | 20 + swad_survey.c | 4 +- swad_user.c | 359 +- swad_user.h | 12 - 70 files changed, 589 insertions(+), 19079 deletions(-) delete mode 100644 soap/soapC.c delete mode 100644 soap/soapC.o delete mode 100644 soap/soapH.h delete mode 100644 soap/soapServer.c delete mode 100644 soap/soapServer.o delete mode 100644 soap/soapServerLib.c delete mode 100644 soap/soapStub.h delete mode 100644 soap/swad.createAccount.req.xml delete mode 100644 soap/swad.createAccount.res.xml delete mode 100644 soap/swad.getAttendanceEvents.req.xml delete mode 100644 soap/swad.getAttendanceEvents.res.xml delete mode 100644 soap/swad.getAttendanceUsers.req.xml delete mode 100644 soap/swad.getAttendanceUsers.res.xml delete mode 100644 soap/swad.getCourseInfo.req.xml delete mode 100644 soap/swad.getCourseInfo.res.xml delete mode 100644 soap/swad.getCourses.req.xml delete mode 100644 soap/swad.getCourses.res.xml delete mode 100644 soap/swad.getDirectoryTree.req.xml delete mode 100644 soap/swad.getDirectoryTree.res.xml delete mode 100644 soap/swad.getFile.req.xml delete mode 100644 soap/swad.getFile.res.xml delete mode 100644 soap/swad.getGroupTypes.req.xml delete mode 100644 soap/swad.getGroupTypes.res.xml delete mode 100644 soap/swad.getGroups.req.xml delete mode 100644 soap/swad.getGroups.res.xml delete mode 100644 soap/swad.getMarks.req.xml delete mode 100644 soap/swad.getMarks.res.xml delete mode 100644 soap/swad.getNewPassword.req.xml delete mode 100644 soap/swad.getNewPassword.res.xml delete mode 100644 soap/swad.getNotifications.req.xml delete mode 100644 soap/swad.getNotifications.res.xml delete mode 100644 soap/swad.getTestConfig.req.xml delete mode 100644 soap/swad.getTestConfig.res.xml delete mode 100644 soap/swad.getTests.req.xml delete mode 100644 soap/swad.getTests.res.xml delete mode 100644 soap/swad.getUsers.req.xml delete mode 100644 soap/swad.getUsers.res.xml delete mode 100644 soap/swad.loginBySessionKey.req.xml delete mode 100644 soap/swad.loginBySessionKey.res.xml delete mode 100644 soap/swad.loginByUserPasswordKey.req.xml delete mode 100644 soap/swad.loginByUserPasswordKey.res.xml delete mode 100644 soap/swad.markNotificationsAsRead.req.xml delete mode 100644 soap/swad.markNotificationsAsRead.res.xml delete mode 100644 soap/swad.nsmap delete mode 100644 soap/swad.sendAttendanceEvent.req.xml delete mode 100644 soap/swad.sendAttendanceEvent.res.xml delete mode 100644 soap/swad.sendAttendanceUsers.req.xml delete mode 100644 soap/swad.sendAttendanceUsers.res.xml delete mode 100644 soap/swad.sendMessage.req.xml delete mode 100644 soap/swad.sendMessage.res.xml delete mode 100644 soap/swad.sendMyGroups.req.xml delete mode 100644 soap/swad.sendMyGroups.res.xml delete mode 100644 soap/swad.sendNotice.req.xml delete mode 100644 soap/swad.sendNotice.res.xml delete mode 100644 soap/swad.wsdl delete mode 100644 soap/swad.xsd create mode 100644 swad_role.c diff --git a/Makefile b/Makefile index 845cec68..fbdd6ad3 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ OBJS = swad_action.o swad_announcement.o swad_assignment.o swad_attendance.o \ swad_network.o swad_nickname.o swad_notice.o swad_notification.o \ swad_pagination.o swad_parameter.o swad_password.o swad_photo.o swad_place.o swad_plugin.o swad_preference.o \ swad_QR.o \ - swad_record.o swad_RSS.o \ + swad_record.o swad_role.o swad_RSS.o \ swad_scope.o swad_search.o swad_session.o swad_setup.o swad_statistic.o swad_string.o swad_survey.o swad_syllabus.o \ swad_test.o swad_test_import.o swad_theme.o swad_timetable.o \ swad_user.o \ diff --git a/soap/soapC.c b/soap/soapC.c deleted file mode 100644 index 1dcde7d9..00000000 --- a/soap/soapC.c +++ /dev/null @@ -1,11292 +0,0 @@ -/* soapC.c - Generated by gSOAP 2.8.18 from swad_web_service.h - -Copyright(C) 2000-2014, Robert van Engelen, Genivia Inc. All Rights Reserved. -The generated code is released under one of the following licenses: -GPL or Genivia's license for commercial use. -This program is released under the GPL with the additional exemption that -compiling, linking, and/or using OpenSSL is allowed. -*/ - -#if defined(__BORLANDC__) -#pragma option push -w-8060 -#pragma option push -w-8004 -#endif - -#include "soapH.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.8.18 2014-12-03 18:12:24 GMT") - - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 int SOAP_FMAC4 soap_getheader(struct soap *soap) -{ - soap->part = SOAP_IN_HEADER; - soap->header = soap_in_SOAP_ENV__Header(soap, "SOAP-ENV:Header", soap->header, NULL); - soap->part = SOAP_END_HEADER; - return soap->header == NULL; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_putheader(struct soap *soap) -{ - if (soap->version && soap->header) - { soap->part = SOAP_IN_HEADER; - if (soap_out_SOAP_ENV__Header(soap, "SOAP-ENV:Header", 0, soap->header, NULL)) - return soap->error; - soap->part = SOAP_END_HEADER; - } - return SOAP_OK; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serializeheader(struct soap *soap) -{ - if (soap->version && soap->header) - soap_serialize_SOAP_ENV__Header(soap, soap->header); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_header(struct soap *soap) -{ - if (soap->header == NULL) - { if ((soap->header = (struct SOAP_ENV__Header*)soap_malloc(soap, sizeof(struct SOAP_ENV__Header)))) - soap_default_SOAP_ENV__Header(soap, soap->header); - } -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_fault(struct soap *soap) -{ - if (soap->fault == NULL) - { soap->fault = (struct SOAP_ENV__Fault*)soap_malloc(soap, sizeof(struct SOAP_ENV__Fault)); - if (soap->fault == NULL) - return; - soap_default_SOAP_ENV__Fault(soap, soap->fault); - } - if (soap->version == 2 && !soap->fault->SOAP_ENV__Code) - { soap->fault->SOAP_ENV__Code = (struct SOAP_ENV__Code*)soap_malloc(soap, sizeof(struct SOAP_ENV__Code)); - soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code); - } - if (soap->version == 2 && !soap->fault->SOAP_ENV__Reason) - { soap->fault->SOAP_ENV__Reason = (struct SOAP_ENV__Reason*)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason)); - soap_default_SOAP_ENV__Reason(soap, soap->fault->SOAP_ENV__Reason); - } -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap *soap) -{ - if (soap->fault) - soap_serialize_SOAP_ENV__Fault(soap, soap->fault); -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_putfault(struct soap *soap) -{ - if (soap->fault) - return soap_put_SOAP_ENV__Fault(soap, soap->fault, "SOAP-ENV:Fault", NULL); - return SOAP_OK; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_getfault(struct soap *soap) -{ - return (soap->fault = soap_get_SOAP_ENV__Fault(soap, NULL, "SOAP-ENV:Fault", NULL)) == NULL; -} - -SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap) -{ - soap_fault(soap); - if (soap->version == 2 && soap->fault->SOAP_ENV__Code) - return (const char**)(void*)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Value; - return (const char**)(void*)&soap->fault->faultcode; -} - -SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultsubcode(struct soap *soap) -{ - soap_fault(soap); - if (soap->version == 2) - { if (soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode == NULL) - { soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode = (struct SOAP_ENV__Code*)soap_malloc(soap, sizeof(struct SOAP_ENV__Code)); - soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode); - } - return (const char**)(void*)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value; - } - return (const char**)(void*)&soap->fault->faultcode; -} - -SOAP_FMAC3 const char * SOAP_FMAC4 soap_check_faultsubcode(struct soap *soap) -{ - soap_fault(soap); - if (soap->version == 2) - { if (soap->fault->SOAP_ENV__Code && soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode && soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode) - return soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value; - return NULL; - } - return soap->fault->faultcode; -} - -SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultstring(struct soap *soap) -{ - soap_fault(soap); - if (soap->version == 2) - return (const char**)(void*)&soap->fault->SOAP_ENV__Reason->SOAP_ENV__Text; - return (const char**)(void*)&soap->fault->faultstring; -} - -SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultdetail(struct soap *soap) -{ - soap_fault(soap); - if (soap->version == 2) - { if (soap->fault->SOAP_ENV__Detail == NULL) - { soap->fault->SOAP_ENV__Detail = (struct SOAP_ENV__Detail*)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail)); - soap_default_SOAP_ENV__Detail(soap, soap->fault->SOAP_ENV__Detail); - } - return (const char**)(void*)&soap->fault->SOAP_ENV__Detail->__any; - } - if (soap->fault->detail == NULL) - { soap->fault->detail = (struct SOAP_ENV__Detail*)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail)); - soap_default_SOAP_ENV__Detail(soap, soap->fault->detail); - } - return (const char**)(void*)&soap->fault->detail->__any; -} - -SOAP_FMAC3 const char * SOAP_FMAC4 soap_check_faultdetail(struct soap *soap) -{ - soap_fault(soap); - if (soap->version == 2 && soap->fault->SOAP_ENV__Detail) - return soap->fault->SOAP_ENV__Detail->__any; - if (soap->fault->detail) - return soap->fault->detail->__any; - return NULL; -} - -#endif - -#ifndef WITH_NOIDREF -SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap *soap) -{ - int t; - if (soap->version == 1) - { for (;;) - { if (!soap_getelement(soap, &t)) - if (soap->error || soap_ignore_element(soap)) - break; - } - } - if (soap->error == SOAP_NO_TAG || soap->error == SOAP_EOF) - soap->error = SOAP_OK; - return soap->error; -} -#endif -SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type) -{ (void)type; - if (soap_peek_element(soap)) - return NULL; -#ifndef WITH_NOIDREF - if (!*soap->id || !(*type = soap_lookup_type(soap, soap->id))) - *type = soap_lookup_type(soap, soap->href); - switch (*type) - { - case SOAP_TYPE_byte: - return soap_in_byte(soap, NULL, NULL, "xsd:byte"); - case SOAP_TYPE_int: - return soap_in_int(soap, NULL, NULL, "xsd:int"); - case SOAP_TYPE_long: - return soap_in_long(soap, NULL, NULL, "xsd:long"); - case SOAP_TYPE_swad__sendMessage: - return soap_in_swad__sendMessage(soap, NULL, NULL, "swad:sendMessage"); - case SOAP_TYPE_swad__sendNotice: - return soap_in_swad__sendNotice(soap, NULL, NULL, "swad:sendNotice"); - case SOAP_TYPE_swad__markNotificationsAsRead: - return soap_in_swad__markNotificationsAsRead(soap, NULL, NULL, "swad:markNotificationsAsRead"); - case SOAP_TYPE_swad__getNotifications: - return soap_in_swad__getNotifications(soap, NULL, NULL, "swad:getNotifications"); - case SOAP_TYPE_swad__sendAttendanceUsers: - return soap_in_swad__sendAttendanceUsers(soap, NULL, NULL, "swad:sendAttendanceUsers"); - case SOAP_TYPE_swad__getAttendanceUsers: - return soap_in_swad__getAttendanceUsers(soap, NULL, NULL, "swad:getAttendanceUsers"); - case SOAP_TYPE_swad__sendAttendanceEvent: - return soap_in_swad__sendAttendanceEvent(soap, NULL, NULL, "swad:sendAttendanceEvent"); - case SOAP_TYPE_swad__getAttendanceEvents: - return soap_in_swad__getAttendanceEvents(soap, NULL, NULL, "swad:getAttendanceEvents"); - case SOAP_TYPE_swad__getUsers: - return soap_in_swad__getUsers(soap, NULL, NULL, "swad:getUsers"); - case SOAP_TYPE_swad__getTests: - return soap_in_swad__getTests(soap, NULL, NULL, "swad:getTests"); - case SOAP_TYPE_swad__getTestConfig: - return soap_in_swad__getTestConfig(soap, NULL, NULL, "swad:getTestConfig"); - case SOAP_TYPE_swad__getMarks: - return soap_in_swad__getMarks(soap, NULL, NULL, "swad:getMarks"); - case SOAP_TYPE_swad__getFile: - return soap_in_swad__getFile(soap, NULL, NULL, "swad:getFile"); - case SOAP_TYPE_swad__getDirectoryTree: - return soap_in_swad__getDirectoryTree(soap, NULL, NULL, "swad:getDirectoryTree"); - case SOAP_TYPE_swad__sendMyGroups: - return soap_in_swad__sendMyGroups(soap, NULL, NULL, "swad:sendMyGroups"); - case SOAP_TYPE_swad__getGroups: - return soap_in_swad__getGroups(soap, NULL, NULL, "swad:getGroups"); - case SOAP_TYPE_swad__getGroupTypes: - return soap_in_swad__getGroupTypes(soap, NULL, NULL, "swad:getGroupTypes"); - case SOAP_TYPE_swad__getCourseInfo: - return soap_in_swad__getCourseInfo(soap, NULL, NULL, "swad:getCourseInfo"); - case SOAP_TYPE_swad__getCourses: - return soap_in_swad__getCourses(soap, NULL, NULL, "swad:getCourses"); - case SOAP_TYPE_swad__getNewPassword: - return soap_in_swad__getNewPassword(soap, NULL, NULL, "swad:getNewPassword"); - case SOAP_TYPE_swad__loginBySessionKey: - return soap_in_swad__loginBySessionKey(soap, NULL, NULL, "swad:loginBySessionKey"); - case SOAP_TYPE_swad__loginByUserPasswordKey: - return soap_in_swad__loginByUserPasswordKey(soap, NULL, NULL, "swad:loginByUserPasswordKey"); - case SOAP_TYPE_swad__createAccount: - return soap_in_swad__createAccount(soap, NULL, NULL, "swad:createAccount"); - case SOAP_TYPE_swad__sendMessageOutput: - return soap_in_swad__sendMessageOutput(soap, NULL, NULL, "swad:sendMessageOutput"); - case SOAP_TYPE_swad__sendNoticeOutput: - return soap_in_swad__sendNoticeOutput(soap, NULL, NULL, "swad:sendNoticeOutput"); - case SOAP_TYPE_swad__getMarksOutput: - return soap_in_swad__getMarksOutput(soap, NULL, NULL, "swad:getMarksOutput"); - case SOAP_TYPE_swad__getFileOutput: - return soap_in_swad__getFileOutput(soap, NULL, NULL, "swad:getFileOutput"); - case SOAP_TYPE_swad__getDirectoryTreeOutput: - return soap_in_swad__getDirectoryTreeOutput(soap, NULL, NULL, "swad:getDirectoryTreeOutput"); - case SOAP_TYPE_swad__sendAttendanceUsersOutput: - return soap_in_swad__sendAttendanceUsersOutput(soap, NULL, NULL, "swad:sendAttendanceUsersOutput"); - case SOAP_TYPE_swad__getAttendanceUsersOutput: - return soap_in_swad__getAttendanceUsersOutput(soap, NULL, NULL, "swad:getAttendanceUsersOutput"); - case SOAP_TYPE_swad__attendanceUsersArray: - return soap_in_swad__attendanceUsersArray(soap, NULL, NULL, "swad:attendanceUsersArray"); - case SOAP_TYPE_swad__attendanceUser: - return soap_in_swad__attendanceUser(soap, NULL, NULL, "swad:attendanceUser"); - case SOAP_TYPE_swad__sendAttendanceEventOutput: - return soap_in_swad__sendAttendanceEventOutput(soap, NULL, NULL, "swad:sendAttendanceEventOutput"); - case SOAP_TYPE_swad__getAttendanceEventsOutput: - return soap_in_swad__getAttendanceEventsOutput(soap, NULL, NULL, "swad:getAttendanceEventsOutput"); - case SOAP_TYPE_swad__attendanceEventsArray: - return soap_in_swad__attendanceEventsArray(soap, NULL, NULL, "swad:attendanceEventsArray"); - case SOAP_TYPE_swad__attendanceEvent: - return soap_in_swad__attendanceEvent(soap, NULL, NULL, "swad:attendanceEvent"); - case SOAP_TYPE_swad__getUsersOutput: - return soap_in_swad__getUsersOutput(soap, NULL, NULL, "swad:getUsersOutput"); - case SOAP_TYPE_swad__usersArray: - return soap_in_swad__usersArray(soap, NULL, NULL, "swad:usersArray"); - case SOAP_TYPE_swad__user: - return soap_in_swad__user(soap, NULL, NULL, "swad:user"); - case SOAP_TYPE_swad__getTestsOutput: - return soap_in_swad__getTestsOutput(soap, NULL, NULL, "swad:getTestsOutput"); - case SOAP_TYPE_swad__questionTagsArray: - return soap_in_swad__questionTagsArray(soap, NULL, NULL, "swad:questionTagsArray"); - case SOAP_TYPE_swad__questionTag: - return soap_in_swad__questionTag(soap, NULL, NULL, "swad:questionTag"); - case SOAP_TYPE_swad__answersArray: - return soap_in_swad__answersArray(soap, NULL, NULL, "swad:answersArray"); - case SOAP_TYPE_swad__answer: - return soap_in_swad__answer(soap, NULL, NULL, "swad:answer"); - case SOAP_TYPE_swad__questionsArray: - return soap_in_swad__questionsArray(soap, NULL, NULL, "swad:questionsArray"); - case SOAP_TYPE_swad__question: - return soap_in_swad__question(soap, NULL, NULL, "swad:question"); - case SOAP_TYPE_swad__tagsArray: - return soap_in_swad__tagsArray(soap, NULL, NULL, "swad:tagsArray"); - case SOAP_TYPE_swad__tag: - return soap_in_swad__tag(soap, NULL, NULL, "swad:tag"); - case SOAP_TYPE_swad__getTestConfigOutput: - return soap_in_swad__getTestConfigOutput(soap, NULL, NULL, "swad:getTestConfigOutput"); - case SOAP_TYPE_swad__markNotificationsAsReadOutput: - return soap_in_swad__markNotificationsAsReadOutput(soap, NULL, NULL, "swad:markNotificationsAsReadOutput"); - case SOAP_TYPE_swad__getNotificationsOutput: - return soap_in_swad__getNotificationsOutput(soap, NULL, NULL, "swad:getNotificationsOutput"); - case SOAP_TYPE_swad__notificationsArray: - return soap_in_swad__notificationsArray(soap, NULL, NULL, "swad:notificationsArray"); - case SOAP_TYPE_swad__notification: - return soap_in_swad__notification(soap, NULL, NULL, "swad:notification"); - case SOAP_TYPE_swad__sendMyGroupsOutput: - return soap_in_swad__sendMyGroupsOutput(soap, NULL, NULL, "swad:sendMyGroupsOutput"); - case SOAP_TYPE_swad__getGroupsOutput: - return soap_in_swad__getGroupsOutput(soap, NULL, NULL, "swad:getGroupsOutput"); - case SOAP_TYPE_swad__groupsArray: - return soap_in_swad__groupsArray(soap, NULL, NULL, "swad:groupsArray"); - case SOAP_TYPE_swad__group: - return soap_in_swad__group(soap, NULL, NULL, "swad:group"); - case SOAP_TYPE_swad__getGroupTypesOutput: - return soap_in_swad__getGroupTypesOutput(soap, NULL, NULL, "swad:getGroupTypesOutput"); - case SOAP_TYPE_swad__groupTypesArray: - return soap_in_swad__groupTypesArray(soap, NULL, NULL, "swad:groupTypesArray"); - case SOAP_TYPE_swad__groupType: - return soap_in_swad__groupType(soap, NULL, NULL, "swad:groupType"); - case SOAP_TYPE_swad__getCourseInfoOutput: - return soap_in_swad__getCourseInfoOutput(soap, NULL, NULL, "swad:getCourseInfoOutput"); - case SOAP_TYPE_swad__getCoursesOutput: - return soap_in_swad__getCoursesOutput(soap, NULL, NULL, "swad:getCoursesOutput"); - case SOAP_TYPE_swad__coursesArray: - return soap_in_swad__coursesArray(soap, NULL, NULL, "swad:coursesArray"); - case SOAP_TYPE_swad__course: - return soap_in_swad__course(soap, NULL, NULL, "swad:course"); - case SOAP_TYPE_swad__getNewPasswordOutput: - return soap_in_swad__getNewPasswordOutput(soap, NULL, NULL, "swad:getNewPasswordOutput"); - case SOAP_TYPE_swad__loginByUserPasswordKeyOutput: - return soap_in_swad__loginByUserPasswordKeyOutput(soap, NULL, NULL, "swad:loginByUserPasswordKeyOutput"); - case SOAP_TYPE_swad__loginBySessionKeyOutput: - return soap_in_swad__loginBySessionKeyOutput(soap, NULL, NULL, "swad:loginBySessionKeyOutput"); - case SOAP_TYPE_swad__createAccountOutput: - return soap_in_swad__createAccountOutput(soap, NULL, NULL, "swad:createAccountOutput"); - case SOAP_TYPE_PointerToswad__sendMessageOutput: - return soap_in_PointerToswad__sendMessageOutput(soap, NULL, NULL, "swad:sendMessageOutput"); - case SOAP_TYPE_PointerToswad__sendNoticeOutput: - return soap_in_PointerToswad__sendNoticeOutput(soap, NULL, NULL, "swad:sendNoticeOutput"); - case SOAP_TYPE_PointerToswad__markNotificationsAsReadOutput: - return soap_in_PointerToswad__markNotificationsAsReadOutput(soap, NULL, NULL, "swad:markNotificationsAsReadOutput"); - case SOAP_TYPE_PointerToswad__getNotificationsOutput: - return soap_in_PointerToswad__getNotificationsOutput(soap, NULL, NULL, "swad:getNotificationsOutput"); - case SOAP_TYPE_PointerToswad__sendAttendanceUsersOutput: - return soap_in_PointerToswad__sendAttendanceUsersOutput(soap, NULL, NULL, "swad:sendAttendanceUsersOutput"); - case SOAP_TYPE_PointerToswad__getAttendanceUsersOutput: - return soap_in_PointerToswad__getAttendanceUsersOutput(soap, NULL, NULL, "swad:getAttendanceUsersOutput"); - case SOAP_TYPE_PointerToswad__sendAttendanceEventOutput: - return soap_in_PointerToswad__sendAttendanceEventOutput(soap, NULL, NULL, "swad:sendAttendanceEventOutput"); - case SOAP_TYPE_PointerToswad__getAttendanceEventsOutput: - return soap_in_PointerToswad__getAttendanceEventsOutput(soap, NULL, NULL, "swad:getAttendanceEventsOutput"); - case SOAP_TYPE_PointerToswad__getUsersOutput: - return soap_in_PointerToswad__getUsersOutput(soap, NULL, NULL, "swad:getUsersOutput"); - case SOAP_TYPE_PointerToswad__getTestsOutput: - return soap_in_PointerToswad__getTestsOutput(soap, NULL, NULL, "swad:getTestsOutput"); - case SOAP_TYPE_PointerToswad__getTestConfigOutput: - return soap_in_PointerToswad__getTestConfigOutput(soap, NULL, NULL, "swad:getTestConfigOutput"); - case SOAP_TYPE_PointerToswad__getMarksOutput: - return soap_in_PointerToswad__getMarksOutput(soap, NULL, NULL, "swad:getMarksOutput"); - case SOAP_TYPE_PointerToswad__getFileOutput: - return soap_in_PointerToswad__getFileOutput(soap, NULL, NULL, "swad:getFileOutput"); - case SOAP_TYPE_PointerToswad__getDirectoryTreeOutput: - return soap_in_PointerToswad__getDirectoryTreeOutput(soap, NULL, NULL, "swad:getDirectoryTreeOutput"); - case SOAP_TYPE_PointerToswad__sendMyGroupsOutput: - return soap_in_PointerToswad__sendMyGroupsOutput(soap, NULL, NULL, "swad:sendMyGroupsOutput"); - case SOAP_TYPE_PointerToswad__getGroupsOutput: - return soap_in_PointerToswad__getGroupsOutput(soap, NULL, NULL, "swad:getGroupsOutput"); - case SOAP_TYPE_PointerToswad__getGroupTypesOutput: - return soap_in_PointerToswad__getGroupTypesOutput(soap, NULL, NULL, "swad:getGroupTypesOutput"); - case SOAP_TYPE_PointerToswad__getCourseInfoOutput: - return soap_in_PointerToswad__getCourseInfoOutput(soap, NULL, NULL, "swad:getCourseInfoOutput"); - case SOAP_TYPE_PointerToswad__getCoursesOutput: - return soap_in_PointerToswad__getCoursesOutput(soap, NULL, NULL, "swad:getCoursesOutput"); - case SOAP_TYPE_PointerToswad__getNewPasswordOutput: - return soap_in_PointerToswad__getNewPasswordOutput(soap, NULL, NULL, "swad:getNewPasswordOutput"); - case SOAP_TYPE_PointerToswad__loginBySessionKeyOutput: - return soap_in_PointerToswad__loginBySessionKeyOutput(soap, NULL, NULL, "swad:loginBySessionKeyOutput"); - case SOAP_TYPE_PointerToswad__loginByUserPasswordKeyOutput: - return soap_in_PointerToswad__loginByUserPasswordKeyOutput(soap, NULL, NULL, "swad:loginByUserPasswordKeyOutput"); - case SOAP_TYPE_PointerToswad__createAccountOutput: - return soap_in_PointerToswad__createAccountOutput(soap, NULL, NULL, "swad:createAccountOutput"); - case SOAP_TYPE_PointerToswad__attendanceUser: - return soap_in_PointerToswad__attendanceUser(soap, NULL, NULL, "swad:attendanceUser"); - case SOAP_TYPE_PointerToswad__attendanceEvent: - return soap_in_PointerToswad__attendanceEvent(soap, NULL, NULL, "swad:attendanceEvent"); - case SOAP_TYPE_PointerToswad__user: - return soap_in_PointerToswad__user(soap, NULL, NULL, "swad:user"); - case SOAP_TYPE_PointerToswad__questionTag: - return soap_in_PointerToswad__questionTag(soap, NULL, NULL, "swad:questionTag"); - case SOAP_TYPE_PointerToswad__answer: - return soap_in_PointerToswad__answer(soap, NULL, NULL, "swad:answer"); - case SOAP_TYPE_PointerToswad__question: - return soap_in_PointerToswad__question(soap, NULL, NULL, "swad:question"); - case SOAP_TYPE_PointerToswad__tag: - return soap_in_PointerToswad__tag(soap, NULL, NULL, "swad:tag"); - case SOAP_TYPE_PointerToswad__notification: - return soap_in_PointerToswad__notification(soap, NULL, NULL, "swad:notification"); - case SOAP_TYPE_PointerToswad__group: - return soap_in_PointerToswad__group(soap, NULL, NULL, "swad:group"); - case SOAP_TYPE_PointerToswad__groupType: - return soap_in_PointerToswad__groupType(soap, NULL, NULL, "swad:groupType"); - case SOAP_TYPE_PointerToswad__course: - return soap_in_PointerToswad__course(soap, NULL, NULL, "swad:course"); - case SOAP_TYPE__QName: - { char **s; - s = soap_in__QName(soap, NULL, NULL, "xsd:QName"); - return s ? *s : NULL; - } - case SOAP_TYPE_string: - { char **s; - s = soap_in_string(soap, NULL, NULL, "xsd:string"); - return s ? *s : NULL; - } - default: -#else - *type = 0; -#endif - { const char *t = soap->type; - if (!*t) - t = soap->tag; - if (!soap_match_tag(soap, t, "xsd:byte")) - { *type = SOAP_TYPE_byte; - return soap_in_byte(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "xsd:int")) - { *type = SOAP_TYPE_int; - return soap_in_int(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "xsd:long")) - { *type = SOAP_TYPE_long; - return soap_in_long(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendMessage")) - { *type = SOAP_TYPE_swad__sendMessage; - return soap_in_swad__sendMessage(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendNotice")) - { *type = SOAP_TYPE_swad__sendNotice; - return soap_in_swad__sendNotice(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:markNotificationsAsRead")) - { *type = SOAP_TYPE_swad__markNotificationsAsRead; - return soap_in_swad__markNotificationsAsRead(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getNotifications")) - { *type = SOAP_TYPE_swad__getNotifications; - return soap_in_swad__getNotifications(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendAttendanceUsers")) - { *type = SOAP_TYPE_swad__sendAttendanceUsers; - return soap_in_swad__sendAttendanceUsers(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getAttendanceUsers")) - { *type = SOAP_TYPE_swad__getAttendanceUsers; - return soap_in_swad__getAttendanceUsers(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendAttendanceEvent")) - { *type = SOAP_TYPE_swad__sendAttendanceEvent; - return soap_in_swad__sendAttendanceEvent(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getAttendanceEvents")) - { *type = SOAP_TYPE_swad__getAttendanceEvents; - return soap_in_swad__getAttendanceEvents(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getUsers")) - { *type = SOAP_TYPE_swad__getUsers; - return soap_in_swad__getUsers(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getTests")) - { *type = SOAP_TYPE_swad__getTests; - return soap_in_swad__getTests(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getTestConfig")) - { *type = SOAP_TYPE_swad__getTestConfig; - return soap_in_swad__getTestConfig(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getMarks")) - { *type = SOAP_TYPE_swad__getMarks; - return soap_in_swad__getMarks(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getFile")) - { *type = SOAP_TYPE_swad__getFile; - return soap_in_swad__getFile(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getDirectoryTree")) - { *type = SOAP_TYPE_swad__getDirectoryTree; - return soap_in_swad__getDirectoryTree(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendMyGroups")) - { *type = SOAP_TYPE_swad__sendMyGroups; - return soap_in_swad__sendMyGroups(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getGroups")) - { *type = SOAP_TYPE_swad__getGroups; - return soap_in_swad__getGroups(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getGroupTypes")) - { *type = SOAP_TYPE_swad__getGroupTypes; - return soap_in_swad__getGroupTypes(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getCourseInfo")) - { *type = SOAP_TYPE_swad__getCourseInfo; - return soap_in_swad__getCourseInfo(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getCourses")) - { *type = SOAP_TYPE_swad__getCourses; - return soap_in_swad__getCourses(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getNewPassword")) - { *type = SOAP_TYPE_swad__getNewPassword; - return soap_in_swad__getNewPassword(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:loginBySessionKey")) - { *type = SOAP_TYPE_swad__loginBySessionKey; - return soap_in_swad__loginBySessionKey(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:loginByUserPasswordKey")) - { *type = SOAP_TYPE_swad__loginByUserPasswordKey; - return soap_in_swad__loginByUserPasswordKey(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:createAccount")) - { *type = SOAP_TYPE_swad__createAccount; - return soap_in_swad__createAccount(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendMessageOutput")) - { *type = SOAP_TYPE_swad__sendMessageOutput; - return soap_in_swad__sendMessageOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendNoticeOutput")) - { *type = SOAP_TYPE_swad__sendNoticeOutput; - return soap_in_swad__sendNoticeOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getMarksOutput")) - { *type = SOAP_TYPE_swad__getMarksOutput; - return soap_in_swad__getMarksOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getFileOutput")) - { *type = SOAP_TYPE_swad__getFileOutput; - return soap_in_swad__getFileOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getDirectoryTreeOutput")) - { *type = SOAP_TYPE_swad__getDirectoryTreeOutput; - return soap_in_swad__getDirectoryTreeOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendAttendanceUsersOutput")) - { *type = SOAP_TYPE_swad__sendAttendanceUsersOutput; - return soap_in_swad__sendAttendanceUsersOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getAttendanceUsersOutput")) - { *type = SOAP_TYPE_swad__getAttendanceUsersOutput; - return soap_in_swad__getAttendanceUsersOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:attendanceUsersArray")) - { *type = SOAP_TYPE_swad__attendanceUsersArray; - return soap_in_swad__attendanceUsersArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:attendanceUser")) - { *type = SOAP_TYPE_swad__attendanceUser; - return soap_in_swad__attendanceUser(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendAttendanceEventOutput")) - { *type = SOAP_TYPE_swad__sendAttendanceEventOutput; - return soap_in_swad__sendAttendanceEventOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getAttendanceEventsOutput")) - { *type = SOAP_TYPE_swad__getAttendanceEventsOutput; - return soap_in_swad__getAttendanceEventsOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:attendanceEventsArray")) - { *type = SOAP_TYPE_swad__attendanceEventsArray; - return soap_in_swad__attendanceEventsArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:attendanceEvent")) - { *type = SOAP_TYPE_swad__attendanceEvent; - return soap_in_swad__attendanceEvent(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getUsersOutput")) - { *type = SOAP_TYPE_swad__getUsersOutput; - return soap_in_swad__getUsersOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:usersArray")) - { *type = SOAP_TYPE_swad__usersArray; - return soap_in_swad__usersArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:user")) - { *type = SOAP_TYPE_swad__user; - return soap_in_swad__user(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getTestsOutput")) - { *type = SOAP_TYPE_swad__getTestsOutput; - return soap_in_swad__getTestsOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:questionTagsArray")) - { *type = SOAP_TYPE_swad__questionTagsArray; - return soap_in_swad__questionTagsArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:questionTag")) - { *type = SOAP_TYPE_swad__questionTag; - return soap_in_swad__questionTag(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:answersArray")) - { *type = SOAP_TYPE_swad__answersArray; - return soap_in_swad__answersArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:answer")) - { *type = SOAP_TYPE_swad__answer; - return soap_in_swad__answer(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:questionsArray")) - { *type = SOAP_TYPE_swad__questionsArray; - return soap_in_swad__questionsArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:question")) - { *type = SOAP_TYPE_swad__question; - return soap_in_swad__question(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:tagsArray")) - { *type = SOAP_TYPE_swad__tagsArray; - return soap_in_swad__tagsArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:tag")) - { *type = SOAP_TYPE_swad__tag; - return soap_in_swad__tag(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getTestConfigOutput")) - { *type = SOAP_TYPE_swad__getTestConfigOutput; - return soap_in_swad__getTestConfigOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:markNotificationsAsReadOutput")) - { *type = SOAP_TYPE_swad__markNotificationsAsReadOutput; - return soap_in_swad__markNotificationsAsReadOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getNotificationsOutput")) - { *type = SOAP_TYPE_swad__getNotificationsOutput; - return soap_in_swad__getNotificationsOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:notificationsArray")) - { *type = SOAP_TYPE_swad__notificationsArray; - return soap_in_swad__notificationsArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:notification")) - { *type = SOAP_TYPE_swad__notification; - return soap_in_swad__notification(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:sendMyGroupsOutput")) - { *type = SOAP_TYPE_swad__sendMyGroupsOutput; - return soap_in_swad__sendMyGroupsOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getGroupsOutput")) - { *type = SOAP_TYPE_swad__getGroupsOutput; - return soap_in_swad__getGroupsOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:groupsArray")) - { *type = SOAP_TYPE_swad__groupsArray; - return soap_in_swad__groupsArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:group")) - { *type = SOAP_TYPE_swad__group; - return soap_in_swad__group(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getGroupTypesOutput")) - { *type = SOAP_TYPE_swad__getGroupTypesOutput; - return soap_in_swad__getGroupTypesOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:groupTypesArray")) - { *type = SOAP_TYPE_swad__groupTypesArray; - return soap_in_swad__groupTypesArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:groupType")) - { *type = SOAP_TYPE_swad__groupType; - return soap_in_swad__groupType(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getCourseInfoOutput")) - { *type = SOAP_TYPE_swad__getCourseInfoOutput; - return soap_in_swad__getCourseInfoOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getCoursesOutput")) - { *type = SOAP_TYPE_swad__getCoursesOutput; - return soap_in_swad__getCoursesOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:coursesArray")) - { *type = SOAP_TYPE_swad__coursesArray; - return soap_in_swad__coursesArray(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:course")) - { *type = SOAP_TYPE_swad__course; - return soap_in_swad__course(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:getNewPasswordOutput")) - { *type = SOAP_TYPE_swad__getNewPasswordOutput; - return soap_in_swad__getNewPasswordOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:loginByUserPasswordKeyOutput")) - { *type = SOAP_TYPE_swad__loginByUserPasswordKeyOutput; - return soap_in_swad__loginByUserPasswordKeyOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:loginBySessionKeyOutput")) - { *type = SOAP_TYPE_swad__loginBySessionKeyOutput; - return soap_in_swad__loginBySessionKeyOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "swad:createAccountOutput")) - { *type = SOAP_TYPE_swad__createAccountOutput; - return soap_in_swad__createAccountOutput(soap, NULL, NULL, NULL); - } - if (!soap_match_tag(soap, t, "xsd:QName")) - { char **s; - *type = SOAP_TYPE__QName; - s = soap_in__QName(soap, NULL, NULL, NULL); - return s ? *s : NULL; - } - if (!soap_match_tag(soap, t, "xsd:string")) - { char **s; - *type = SOAP_TYPE_string; - s = soap_in_string(soap, NULL, NULL, NULL); - return s ? *s : NULL; - } - t = soap->tag; -#ifndef WITH_NOIDREF - } -#endif - } - soap->error = SOAP_TAG_MISMATCH; - return NULL; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap *soap) -{ - if (!soap_peek_element(soap)) - { int t; - DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unexpected element '%s' in input (level = %u, %d)\n", soap->tag, soap->level, soap->body)); - if (soap->mustUnderstand && !soap->other) - return soap->error = SOAP_MUSTUNDERSTAND; - if (((soap->mode & SOAP_XML_STRICT) && soap->part != SOAP_IN_HEADER) || !soap_match_tag(soap, soap->tag, "SOAP-ENV:")) - { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "REJECTING element '%s'\n", soap->tag)); - return soap->error = SOAP_TAG_MISMATCH; - } - if (!*soap->id || !soap_getelement(soap, &t)) - { soap->peeked = 0; - if (soap->fignore) - soap->error = soap->fignore(soap, soap->tag); - else - soap->error = SOAP_OK; - DBGLOG(TEST, if (!soap->error) SOAP_MESSAGE(fdebug, "IGNORING element '%s'\n", soap->tag)); - if (!soap->error && soap->body) - { soap->level++; - while (!soap_ignore_element(soap)) - ; - if (soap->error == SOAP_NO_TAG) - soap->error = soap_element_end_in(soap, NULL); - } - } - } - return soap->error; -} - -#ifndef WITH_NOIDREF -SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap *soap) -{ - int i; - struct soap_plist *pp; - if (soap->version == 1 && soap->encodingStyle && !(soap->mode & (SOAP_XML_TREE | SOAP_XML_GRAPH))) - for (i = 0; i < SOAP_PTRHASH; i++) - for (pp = soap->pht[i]; pp; pp = pp->next) - if (pp->mark1 == 2 || pp->mark2 == 2) - if (soap_putelement(soap, pp->ptr, SOAP_MULTIREFTAG, pp->id, pp->type)) - return soap->error; - return SOAP_OK; -} -#endif -SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, const char *tag, int id, int type) -{ (void)tag; - switch (type) - { - case SOAP_TYPE_byte: - return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte"); - case SOAP_TYPE_int: - return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int"); - case SOAP_TYPE_long: - return soap_out_long(soap, tag, id, (const long *)ptr, "xsd:long"); - case SOAP_TYPE_swad__sendMessage: - return soap_out_swad__sendMessage(soap, tag, id, (const struct swad__sendMessage *)ptr, "swad:sendMessage"); - case SOAP_TYPE_swad__sendNotice: - return soap_out_swad__sendNotice(soap, tag, id, (const struct swad__sendNotice *)ptr, "swad:sendNotice"); - case SOAP_TYPE_swad__markNotificationsAsRead: - return soap_out_swad__markNotificationsAsRead(soap, tag, id, (const struct swad__markNotificationsAsRead *)ptr, "swad:markNotificationsAsRead"); - case SOAP_TYPE_swad__getNotifications: - return soap_out_swad__getNotifications(soap, tag, id, (const struct swad__getNotifications *)ptr, "swad:getNotifications"); - case SOAP_TYPE_swad__sendAttendanceUsers: - return soap_out_swad__sendAttendanceUsers(soap, tag, id, (const struct swad__sendAttendanceUsers *)ptr, "swad:sendAttendanceUsers"); - case SOAP_TYPE_swad__getAttendanceUsers: - return soap_out_swad__getAttendanceUsers(soap, tag, id, (const struct swad__getAttendanceUsers *)ptr, "swad:getAttendanceUsers"); - case SOAP_TYPE_swad__sendAttendanceEvent: - return soap_out_swad__sendAttendanceEvent(soap, tag, id, (const struct swad__sendAttendanceEvent *)ptr, "swad:sendAttendanceEvent"); - case SOAP_TYPE_swad__getAttendanceEvents: - return soap_out_swad__getAttendanceEvents(soap, tag, id, (const struct swad__getAttendanceEvents *)ptr, "swad:getAttendanceEvents"); - case SOAP_TYPE_swad__getUsers: - return soap_out_swad__getUsers(soap, tag, id, (const struct swad__getUsers *)ptr, "swad:getUsers"); - case SOAP_TYPE_swad__getTests: - return soap_out_swad__getTests(soap, tag, id, (const struct swad__getTests *)ptr, "swad:getTests"); - case SOAP_TYPE_swad__getTestConfig: - return soap_out_swad__getTestConfig(soap, tag, id, (const struct swad__getTestConfig *)ptr, "swad:getTestConfig"); - case SOAP_TYPE_swad__getMarks: - return soap_out_swad__getMarks(soap, tag, id, (const struct swad__getMarks *)ptr, "swad:getMarks"); - case SOAP_TYPE_swad__getFile: - return soap_out_swad__getFile(soap, tag, id, (const struct swad__getFile *)ptr, "swad:getFile"); - case SOAP_TYPE_swad__getDirectoryTree: - return soap_out_swad__getDirectoryTree(soap, tag, id, (const struct swad__getDirectoryTree *)ptr, "swad:getDirectoryTree"); - case SOAP_TYPE_swad__sendMyGroups: - return soap_out_swad__sendMyGroups(soap, tag, id, (const struct swad__sendMyGroups *)ptr, "swad:sendMyGroups"); - case SOAP_TYPE_swad__getGroups: - return soap_out_swad__getGroups(soap, tag, id, (const struct swad__getGroups *)ptr, "swad:getGroups"); - case SOAP_TYPE_swad__getGroupTypes: - return soap_out_swad__getGroupTypes(soap, tag, id, (const struct swad__getGroupTypes *)ptr, "swad:getGroupTypes"); - case SOAP_TYPE_swad__getCourseInfo: - return soap_out_swad__getCourseInfo(soap, tag, id, (const struct swad__getCourseInfo *)ptr, "swad:getCourseInfo"); - case SOAP_TYPE_swad__getCourses: - return soap_out_swad__getCourses(soap, tag, id, (const struct swad__getCourses *)ptr, "swad:getCourses"); - case SOAP_TYPE_swad__getNewPassword: - return soap_out_swad__getNewPassword(soap, tag, id, (const struct swad__getNewPassword *)ptr, "swad:getNewPassword"); - case SOAP_TYPE_swad__loginBySessionKey: - return soap_out_swad__loginBySessionKey(soap, tag, id, (const struct swad__loginBySessionKey *)ptr, "swad:loginBySessionKey"); - case SOAP_TYPE_swad__loginByUserPasswordKey: - return soap_out_swad__loginByUserPasswordKey(soap, tag, id, (const struct swad__loginByUserPasswordKey *)ptr, "swad:loginByUserPasswordKey"); - case SOAP_TYPE_swad__createAccount: - return soap_out_swad__createAccount(soap, tag, id, (const struct swad__createAccount *)ptr, "swad:createAccount"); - case SOAP_TYPE_swad__sendMessageOutput: - return soap_out_swad__sendMessageOutput(soap, tag, id, (const struct swad__sendMessageOutput *)ptr, "swad:sendMessageOutput"); - case SOAP_TYPE_swad__sendNoticeOutput: - return soap_out_swad__sendNoticeOutput(soap, tag, id, (const struct swad__sendNoticeOutput *)ptr, "swad:sendNoticeOutput"); - case SOAP_TYPE_swad__getMarksOutput: - return soap_out_swad__getMarksOutput(soap, tag, id, (const struct swad__getMarksOutput *)ptr, "swad:getMarksOutput"); - case SOAP_TYPE_swad__getFileOutput: - return soap_out_swad__getFileOutput(soap, tag, id, (const struct swad__getFileOutput *)ptr, "swad:getFileOutput"); - case SOAP_TYPE_swad__getDirectoryTreeOutput: - return soap_out_swad__getDirectoryTreeOutput(soap, tag, id, (const struct swad__getDirectoryTreeOutput *)ptr, "swad:getDirectoryTreeOutput"); - case SOAP_TYPE_swad__sendAttendanceUsersOutput: - return soap_out_swad__sendAttendanceUsersOutput(soap, tag, id, (const struct swad__sendAttendanceUsersOutput *)ptr, "swad:sendAttendanceUsersOutput"); - case SOAP_TYPE_swad__getAttendanceUsersOutput: - return soap_out_swad__getAttendanceUsersOutput(soap, tag, id, (const struct swad__getAttendanceUsersOutput *)ptr, "swad:getAttendanceUsersOutput"); - case SOAP_TYPE_swad__attendanceUsersArray: - return soap_out_swad__attendanceUsersArray(soap, tag, id, (const struct swad__attendanceUsersArray *)ptr, "swad:attendanceUsersArray"); - case SOAP_TYPE_swad__attendanceUser: - return soap_out_swad__attendanceUser(soap, tag, id, (const struct swad__attendanceUser *)ptr, "swad:attendanceUser"); - case SOAP_TYPE_swad__sendAttendanceEventOutput: - return soap_out_swad__sendAttendanceEventOutput(soap, tag, id, (const struct swad__sendAttendanceEventOutput *)ptr, "swad:sendAttendanceEventOutput"); - case SOAP_TYPE_swad__getAttendanceEventsOutput: - return soap_out_swad__getAttendanceEventsOutput(soap, tag, id, (const struct swad__getAttendanceEventsOutput *)ptr, "swad:getAttendanceEventsOutput"); - case SOAP_TYPE_swad__attendanceEventsArray: - return soap_out_swad__attendanceEventsArray(soap, tag, id, (const struct swad__attendanceEventsArray *)ptr, "swad:attendanceEventsArray"); - case SOAP_TYPE_swad__attendanceEvent: - return soap_out_swad__attendanceEvent(soap, tag, id, (const struct swad__attendanceEvent *)ptr, "swad:attendanceEvent"); - case SOAP_TYPE_swad__getUsersOutput: - return soap_out_swad__getUsersOutput(soap, tag, id, (const struct swad__getUsersOutput *)ptr, "swad:getUsersOutput"); - case SOAP_TYPE_swad__usersArray: - return soap_out_swad__usersArray(soap, tag, id, (const struct swad__usersArray *)ptr, "swad:usersArray"); - case SOAP_TYPE_swad__user: - return soap_out_swad__user(soap, tag, id, (const struct swad__user *)ptr, "swad:user"); - case SOAP_TYPE_swad__getTestsOutput: - return soap_out_swad__getTestsOutput(soap, tag, id, (const struct swad__getTestsOutput *)ptr, "swad:getTestsOutput"); - case SOAP_TYPE_swad__questionTagsArray: - return soap_out_swad__questionTagsArray(soap, tag, id, (const struct swad__questionTagsArray *)ptr, "swad:questionTagsArray"); - case SOAP_TYPE_swad__questionTag: - return soap_out_swad__questionTag(soap, tag, id, (const struct swad__questionTag *)ptr, "swad:questionTag"); - case SOAP_TYPE_swad__answersArray: - return soap_out_swad__answersArray(soap, tag, id, (const struct swad__answersArray *)ptr, "swad:answersArray"); - case SOAP_TYPE_swad__answer: - return soap_out_swad__answer(soap, tag, id, (const struct swad__answer *)ptr, "swad:answer"); - case SOAP_TYPE_swad__questionsArray: - return soap_out_swad__questionsArray(soap, tag, id, (const struct swad__questionsArray *)ptr, "swad:questionsArray"); - case SOAP_TYPE_swad__question: - return soap_out_swad__question(soap, tag, id, (const struct swad__question *)ptr, "swad:question"); - case SOAP_TYPE_swad__tagsArray: - return soap_out_swad__tagsArray(soap, tag, id, (const struct swad__tagsArray *)ptr, "swad:tagsArray"); - case SOAP_TYPE_swad__tag: - return soap_out_swad__tag(soap, tag, id, (const struct swad__tag *)ptr, "swad:tag"); - case SOAP_TYPE_swad__getTestConfigOutput: - return soap_out_swad__getTestConfigOutput(soap, tag, id, (const struct swad__getTestConfigOutput *)ptr, "swad:getTestConfigOutput"); - case SOAP_TYPE_swad__markNotificationsAsReadOutput: - return soap_out_swad__markNotificationsAsReadOutput(soap, tag, id, (const struct swad__markNotificationsAsReadOutput *)ptr, "swad:markNotificationsAsReadOutput"); - case SOAP_TYPE_swad__getNotificationsOutput: - return soap_out_swad__getNotificationsOutput(soap, tag, id, (const struct swad__getNotificationsOutput *)ptr, "swad:getNotificationsOutput"); - case SOAP_TYPE_swad__notificationsArray: - return soap_out_swad__notificationsArray(soap, tag, id, (const struct swad__notificationsArray *)ptr, "swad:notificationsArray"); - case SOAP_TYPE_swad__notification: - return soap_out_swad__notification(soap, tag, id, (const struct swad__notification *)ptr, "swad:notification"); - case SOAP_TYPE_swad__sendMyGroupsOutput: - return soap_out_swad__sendMyGroupsOutput(soap, tag, id, (const struct swad__sendMyGroupsOutput *)ptr, "swad:sendMyGroupsOutput"); - case SOAP_TYPE_swad__getGroupsOutput: - return soap_out_swad__getGroupsOutput(soap, tag, id, (const struct swad__getGroupsOutput *)ptr, "swad:getGroupsOutput"); - case SOAP_TYPE_swad__groupsArray: - return soap_out_swad__groupsArray(soap, tag, id, (const struct swad__groupsArray *)ptr, "swad:groupsArray"); - case SOAP_TYPE_swad__group: - return soap_out_swad__group(soap, tag, id, (const struct swad__group *)ptr, "swad:group"); - case SOAP_TYPE_swad__getGroupTypesOutput: - return soap_out_swad__getGroupTypesOutput(soap, tag, id, (const struct swad__getGroupTypesOutput *)ptr, "swad:getGroupTypesOutput"); - case SOAP_TYPE_swad__groupTypesArray: - return soap_out_swad__groupTypesArray(soap, tag, id, (const struct swad__groupTypesArray *)ptr, "swad:groupTypesArray"); - case SOAP_TYPE_swad__groupType: - return soap_out_swad__groupType(soap, tag, id, (const struct swad__groupType *)ptr, "swad:groupType"); - case SOAP_TYPE_swad__getCourseInfoOutput: - return soap_out_swad__getCourseInfoOutput(soap, tag, id, (const struct swad__getCourseInfoOutput *)ptr, "swad:getCourseInfoOutput"); - case SOAP_TYPE_swad__getCoursesOutput: - return soap_out_swad__getCoursesOutput(soap, tag, id, (const struct swad__getCoursesOutput *)ptr, "swad:getCoursesOutput"); - case SOAP_TYPE_swad__coursesArray: - return soap_out_swad__coursesArray(soap, tag, id, (const struct swad__coursesArray *)ptr, "swad:coursesArray"); - case SOAP_TYPE_swad__course: - return soap_out_swad__course(soap, tag, id, (const struct swad__course *)ptr, "swad:course"); - case SOAP_TYPE_swad__getNewPasswordOutput: - return soap_out_swad__getNewPasswordOutput(soap, tag, id, (const struct swad__getNewPasswordOutput *)ptr, "swad:getNewPasswordOutput"); - case SOAP_TYPE_swad__loginByUserPasswordKeyOutput: - return soap_out_swad__loginByUserPasswordKeyOutput(soap, tag, id, (const struct swad__loginByUserPasswordKeyOutput *)ptr, "swad:loginByUserPasswordKeyOutput"); - case SOAP_TYPE_swad__loginBySessionKeyOutput: - return soap_out_swad__loginBySessionKeyOutput(soap, tag, id, (const struct swad__loginBySessionKeyOutput *)ptr, "swad:loginBySessionKeyOutput"); - case SOAP_TYPE_swad__createAccountOutput: - return soap_out_swad__createAccountOutput(soap, tag, id, (const struct swad__createAccountOutput *)ptr, "swad:createAccountOutput"); - case SOAP_TYPE_PointerToswad__sendMessageOutput: - return soap_out_PointerToswad__sendMessageOutput(soap, tag, id, (struct swad__sendMessageOutput *const*)ptr, "swad:sendMessageOutput"); - case SOAP_TYPE_PointerToswad__sendNoticeOutput: - return soap_out_PointerToswad__sendNoticeOutput(soap, tag, id, (struct swad__sendNoticeOutput *const*)ptr, "swad:sendNoticeOutput"); - case SOAP_TYPE_PointerToswad__markNotificationsAsReadOutput: - return soap_out_PointerToswad__markNotificationsAsReadOutput(soap, tag, id, (struct swad__markNotificationsAsReadOutput *const*)ptr, "swad:markNotificationsAsReadOutput"); - case SOAP_TYPE_PointerToswad__getNotificationsOutput: - return soap_out_PointerToswad__getNotificationsOutput(soap, tag, id, (struct swad__getNotificationsOutput *const*)ptr, "swad:getNotificationsOutput"); - case SOAP_TYPE_PointerToswad__sendAttendanceUsersOutput: - return soap_out_PointerToswad__sendAttendanceUsersOutput(soap, tag, id, (struct swad__sendAttendanceUsersOutput *const*)ptr, "swad:sendAttendanceUsersOutput"); - case SOAP_TYPE_PointerToswad__getAttendanceUsersOutput: - return soap_out_PointerToswad__getAttendanceUsersOutput(soap, tag, id, (struct swad__getAttendanceUsersOutput *const*)ptr, "swad:getAttendanceUsersOutput"); - case SOAP_TYPE_PointerToswad__sendAttendanceEventOutput: - return soap_out_PointerToswad__sendAttendanceEventOutput(soap, tag, id, (struct swad__sendAttendanceEventOutput *const*)ptr, "swad:sendAttendanceEventOutput"); - case SOAP_TYPE_PointerToswad__getAttendanceEventsOutput: - return soap_out_PointerToswad__getAttendanceEventsOutput(soap, tag, id, (struct swad__getAttendanceEventsOutput *const*)ptr, "swad:getAttendanceEventsOutput"); - case SOAP_TYPE_PointerToswad__getUsersOutput: - return soap_out_PointerToswad__getUsersOutput(soap, tag, id, (struct swad__getUsersOutput *const*)ptr, "swad:getUsersOutput"); - case SOAP_TYPE_PointerToswad__getTestsOutput: - return soap_out_PointerToswad__getTestsOutput(soap, tag, id, (struct swad__getTestsOutput *const*)ptr, "swad:getTestsOutput"); - case SOAP_TYPE_PointerToswad__getTestConfigOutput: - return soap_out_PointerToswad__getTestConfigOutput(soap, tag, id, (struct swad__getTestConfigOutput *const*)ptr, "swad:getTestConfigOutput"); - case SOAP_TYPE_PointerToswad__getMarksOutput: - return soap_out_PointerToswad__getMarksOutput(soap, tag, id, (struct swad__getMarksOutput *const*)ptr, "swad:getMarksOutput"); - case SOAP_TYPE_PointerToswad__getFileOutput: - return soap_out_PointerToswad__getFileOutput(soap, tag, id, (struct swad__getFileOutput *const*)ptr, "swad:getFileOutput"); - case SOAP_TYPE_PointerToswad__getDirectoryTreeOutput: - return soap_out_PointerToswad__getDirectoryTreeOutput(soap, tag, id, (struct swad__getDirectoryTreeOutput *const*)ptr, "swad:getDirectoryTreeOutput"); - case SOAP_TYPE_PointerToswad__sendMyGroupsOutput: - return soap_out_PointerToswad__sendMyGroupsOutput(soap, tag, id, (struct swad__sendMyGroupsOutput *const*)ptr, "swad:sendMyGroupsOutput"); - case SOAP_TYPE_PointerToswad__getGroupsOutput: - return soap_out_PointerToswad__getGroupsOutput(soap, tag, id, (struct swad__getGroupsOutput *const*)ptr, "swad:getGroupsOutput"); - case SOAP_TYPE_PointerToswad__getGroupTypesOutput: - return soap_out_PointerToswad__getGroupTypesOutput(soap, tag, id, (struct swad__getGroupTypesOutput *const*)ptr, "swad:getGroupTypesOutput"); - case SOAP_TYPE_PointerToswad__getCourseInfoOutput: - return soap_out_PointerToswad__getCourseInfoOutput(soap, tag, id, (struct swad__getCourseInfoOutput *const*)ptr, "swad:getCourseInfoOutput"); - case SOAP_TYPE_PointerToswad__getCoursesOutput: - return soap_out_PointerToswad__getCoursesOutput(soap, tag, id, (struct swad__getCoursesOutput *const*)ptr, "swad:getCoursesOutput"); - case SOAP_TYPE_PointerToswad__getNewPasswordOutput: - return soap_out_PointerToswad__getNewPasswordOutput(soap, tag, id, (struct swad__getNewPasswordOutput *const*)ptr, "swad:getNewPasswordOutput"); - case SOAP_TYPE_PointerToswad__loginBySessionKeyOutput: - return soap_out_PointerToswad__loginBySessionKeyOutput(soap, tag, id, (struct swad__loginBySessionKeyOutput *const*)ptr, "swad:loginBySessionKeyOutput"); - case SOAP_TYPE_PointerToswad__loginByUserPasswordKeyOutput: - return soap_out_PointerToswad__loginByUserPasswordKeyOutput(soap, tag, id, (struct swad__loginByUserPasswordKeyOutput *const*)ptr, "swad:loginByUserPasswordKeyOutput"); - case SOAP_TYPE_PointerToswad__createAccountOutput: - return soap_out_PointerToswad__createAccountOutput(soap, tag, id, (struct swad__createAccountOutput *const*)ptr, "swad:createAccountOutput"); - case SOAP_TYPE_PointerToswad__attendanceUser: - return soap_out_PointerToswad__attendanceUser(soap, tag, id, (struct swad__attendanceUser *const*)ptr, "swad:attendanceUser"); - case SOAP_TYPE_PointerToswad__attendanceEvent: - return soap_out_PointerToswad__attendanceEvent(soap, tag, id, (struct swad__attendanceEvent *const*)ptr, "swad:attendanceEvent"); - case SOAP_TYPE_PointerToswad__user: - return soap_out_PointerToswad__user(soap, tag, id, (struct swad__user *const*)ptr, "swad:user"); - case SOAP_TYPE_PointerToswad__questionTag: - return soap_out_PointerToswad__questionTag(soap, tag, id, (struct swad__questionTag *const*)ptr, "swad:questionTag"); - case SOAP_TYPE_PointerToswad__answer: - return soap_out_PointerToswad__answer(soap, tag, id, (struct swad__answer *const*)ptr, "swad:answer"); - case SOAP_TYPE_PointerToswad__question: - return soap_out_PointerToswad__question(soap, tag, id, (struct swad__question *const*)ptr, "swad:question"); - case SOAP_TYPE_PointerToswad__tag: - return soap_out_PointerToswad__tag(soap, tag, id, (struct swad__tag *const*)ptr, "swad:tag"); - case SOAP_TYPE_PointerToswad__notification: - return soap_out_PointerToswad__notification(soap, tag, id, (struct swad__notification *const*)ptr, "swad:notification"); - case SOAP_TYPE_PointerToswad__group: - return soap_out_PointerToswad__group(soap, tag, id, (struct swad__group *const*)ptr, "swad:group"); - case SOAP_TYPE_PointerToswad__groupType: - return soap_out_PointerToswad__groupType(soap, tag, id, (struct swad__groupType *const*)ptr, "swad:groupType"); - case SOAP_TYPE_PointerToswad__course: - return soap_out_PointerToswad__course(soap, tag, id, (struct swad__course *const*)ptr, "swad:course"); - case SOAP_TYPE__QName: - return soap_out_string(soap, tag, id, (char*const*)(void*)&ptr, "xsd:QName"); - case SOAP_TYPE_string: - return soap_out_string(soap, tag, id, (char*const*)(void*)&ptr, "xsd:string"); - } - return SOAP_OK; -} - -#ifndef WITH_NOIDREF -SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr, int type) -{ - (void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */ - switch (type) - { - case SOAP_TYPE_swad__sendMessage: - soap_serialize_swad__sendMessage(soap, (const struct swad__sendMessage *)ptr); - break; - case SOAP_TYPE_swad__sendNotice: - soap_serialize_swad__sendNotice(soap, (const struct swad__sendNotice *)ptr); - break; - case SOAP_TYPE_swad__markNotificationsAsRead: - soap_serialize_swad__markNotificationsAsRead(soap, (const struct swad__markNotificationsAsRead *)ptr); - break; - case SOAP_TYPE_swad__getNotifications: - soap_serialize_swad__getNotifications(soap, (const struct swad__getNotifications *)ptr); - break; - case SOAP_TYPE_swad__sendAttendanceUsers: - soap_serialize_swad__sendAttendanceUsers(soap, (const struct swad__sendAttendanceUsers *)ptr); - break; - case SOAP_TYPE_swad__getAttendanceUsers: - soap_serialize_swad__getAttendanceUsers(soap, (const struct swad__getAttendanceUsers *)ptr); - break; - case SOAP_TYPE_swad__sendAttendanceEvent: - soap_serialize_swad__sendAttendanceEvent(soap, (const struct swad__sendAttendanceEvent *)ptr); - break; - case SOAP_TYPE_swad__getAttendanceEvents: - soap_serialize_swad__getAttendanceEvents(soap, (const struct swad__getAttendanceEvents *)ptr); - break; - case SOAP_TYPE_swad__getUsers: - soap_serialize_swad__getUsers(soap, (const struct swad__getUsers *)ptr); - break; - case SOAP_TYPE_swad__getTests: - soap_serialize_swad__getTests(soap, (const struct swad__getTests *)ptr); - break; - case SOAP_TYPE_swad__getTestConfig: - soap_serialize_swad__getTestConfig(soap, (const struct swad__getTestConfig *)ptr); - break; - case SOAP_TYPE_swad__getMarks: - soap_serialize_swad__getMarks(soap, (const struct swad__getMarks *)ptr); - break; - case SOAP_TYPE_swad__getFile: - soap_serialize_swad__getFile(soap, (const struct swad__getFile *)ptr); - break; - case SOAP_TYPE_swad__getDirectoryTree: - soap_serialize_swad__getDirectoryTree(soap, (const struct swad__getDirectoryTree *)ptr); - break; - case SOAP_TYPE_swad__sendMyGroups: - soap_serialize_swad__sendMyGroups(soap, (const struct swad__sendMyGroups *)ptr); - break; - case SOAP_TYPE_swad__getGroups: - soap_serialize_swad__getGroups(soap, (const struct swad__getGroups *)ptr); - break; - case SOAP_TYPE_swad__getGroupTypes: - soap_serialize_swad__getGroupTypes(soap, (const struct swad__getGroupTypes *)ptr); - break; - case SOAP_TYPE_swad__getCourseInfo: - soap_serialize_swad__getCourseInfo(soap, (const struct swad__getCourseInfo *)ptr); - break; - case SOAP_TYPE_swad__getCourses: - soap_serialize_swad__getCourses(soap, (const struct swad__getCourses *)ptr); - break; - case SOAP_TYPE_swad__getNewPassword: - soap_serialize_swad__getNewPassword(soap, (const struct swad__getNewPassword *)ptr); - break; - case SOAP_TYPE_swad__loginBySessionKey: - soap_serialize_swad__loginBySessionKey(soap, (const struct swad__loginBySessionKey *)ptr); - break; - case SOAP_TYPE_swad__loginByUserPasswordKey: - soap_serialize_swad__loginByUserPasswordKey(soap, (const struct swad__loginByUserPasswordKey *)ptr); - break; - case SOAP_TYPE_swad__createAccount: - soap_serialize_swad__createAccount(soap, (const struct swad__createAccount *)ptr); - break; - case SOAP_TYPE_swad__sendMessageOutput: - soap_serialize_swad__sendMessageOutput(soap, (const struct swad__sendMessageOutput *)ptr); - break; - case SOAP_TYPE_swad__sendNoticeOutput: - soap_serialize_swad__sendNoticeOutput(soap, (const struct swad__sendNoticeOutput *)ptr); - break; - case SOAP_TYPE_swad__getMarksOutput: - soap_serialize_swad__getMarksOutput(soap, (const struct swad__getMarksOutput *)ptr); - break; - case SOAP_TYPE_swad__getFileOutput: - soap_serialize_swad__getFileOutput(soap, (const struct swad__getFileOutput *)ptr); - break; - case SOAP_TYPE_swad__getDirectoryTreeOutput: - soap_serialize_swad__getDirectoryTreeOutput(soap, (const struct swad__getDirectoryTreeOutput *)ptr); - break; - case SOAP_TYPE_swad__sendAttendanceUsersOutput: - soap_serialize_swad__sendAttendanceUsersOutput(soap, (const struct swad__sendAttendanceUsersOutput *)ptr); - break; - case SOAP_TYPE_swad__getAttendanceUsersOutput: - soap_serialize_swad__getAttendanceUsersOutput(soap, (const struct swad__getAttendanceUsersOutput *)ptr); - break; - case SOAP_TYPE_swad__attendanceUsersArray: - soap_serialize_swad__attendanceUsersArray(soap, (const struct swad__attendanceUsersArray *)ptr); - break; - case SOAP_TYPE_swad__attendanceUser: - soap_serialize_swad__attendanceUser(soap, (const struct swad__attendanceUser *)ptr); - break; - case SOAP_TYPE_swad__sendAttendanceEventOutput: - soap_serialize_swad__sendAttendanceEventOutput(soap, (const struct swad__sendAttendanceEventOutput *)ptr); - break; - case SOAP_TYPE_swad__getAttendanceEventsOutput: - soap_serialize_swad__getAttendanceEventsOutput(soap, (const struct swad__getAttendanceEventsOutput *)ptr); - break; - case SOAP_TYPE_swad__attendanceEventsArray: - soap_serialize_swad__attendanceEventsArray(soap, (const struct swad__attendanceEventsArray *)ptr); - break; - case SOAP_TYPE_swad__attendanceEvent: - soap_serialize_swad__attendanceEvent(soap, (const struct swad__attendanceEvent *)ptr); - break; - case SOAP_TYPE_swad__getUsersOutput: - soap_serialize_swad__getUsersOutput(soap, (const struct swad__getUsersOutput *)ptr); - break; - case SOAP_TYPE_swad__usersArray: - soap_serialize_swad__usersArray(soap, (const struct swad__usersArray *)ptr); - break; - case SOAP_TYPE_swad__user: - soap_serialize_swad__user(soap, (const struct swad__user *)ptr); - break; - case SOAP_TYPE_swad__getTestsOutput: - soap_serialize_swad__getTestsOutput(soap, (const struct swad__getTestsOutput *)ptr); - break; - case SOAP_TYPE_swad__questionTagsArray: - soap_serialize_swad__questionTagsArray(soap, (const struct swad__questionTagsArray *)ptr); - break; - case SOAP_TYPE_swad__questionTag: - soap_serialize_swad__questionTag(soap, (const struct swad__questionTag *)ptr); - break; - case SOAP_TYPE_swad__answersArray: - soap_serialize_swad__answersArray(soap, (const struct swad__answersArray *)ptr); - break; - case SOAP_TYPE_swad__answer: - soap_serialize_swad__answer(soap, (const struct swad__answer *)ptr); - break; - case SOAP_TYPE_swad__questionsArray: - soap_serialize_swad__questionsArray(soap, (const struct swad__questionsArray *)ptr); - break; - case SOAP_TYPE_swad__question: - soap_serialize_swad__question(soap, (const struct swad__question *)ptr); - break; - case SOAP_TYPE_swad__tagsArray: - soap_serialize_swad__tagsArray(soap, (const struct swad__tagsArray *)ptr); - break; - case SOAP_TYPE_swad__tag: - soap_serialize_swad__tag(soap, (const struct swad__tag *)ptr); - break; - case SOAP_TYPE_swad__getTestConfigOutput: - soap_serialize_swad__getTestConfigOutput(soap, (const struct swad__getTestConfigOutput *)ptr); - break; - case SOAP_TYPE_swad__markNotificationsAsReadOutput: - soap_serialize_swad__markNotificationsAsReadOutput(soap, (const struct swad__markNotificationsAsReadOutput *)ptr); - break; - case SOAP_TYPE_swad__getNotificationsOutput: - soap_serialize_swad__getNotificationsOutput(soap, (const struct swad__getNotificationsOutput *)ptr); - break; - case SOAP_TYPE_swad__notificationsArray: - soap_serialize_swad__notificationsArray(soap, (const struct swad__notificationsArray *)ptr); - break; - case SOAP_TYPE_swad__notification: - soap_serialize_swad__notification(soap, (const struct swad__notification *)ptr); - break; - case SOAP_TYPE_swad__sendMyGroupsOutput: - soap_serialize_swad__sendMyGroupsOutput(soap, (const struct swad__sendMyGroupsOutput *)ptr); - break; - case SOAP_TYPE_swad__getGroupsOutput: - soap_serialize_swad__getGroupsOutput(soap, (const struct swad__getGroupsOutput *)ptr); - break; - case SOAP_TYPE_swad__groupsArray: - soap_serialize_swad__groupsArray(soap, (const struct swad__groupsArray *)ptr); - break; - case SOAP_TYPE_swad__group: - soap_serialize_swad__group(soap, (const struct swad__group *)ptr); - break; - case SOAP_TYPE_swad__getGroupTypesOutput: - soap_serialize_swad__getGroupTypesOutput(soap, (const struct swad__getGroupTypesOutput *)ptr); - break; - case SOAP_TYPE_swad__groupTypesArray: - soap_serialize_swad__groupTypesArray(soap, (const struct swad__groupTypesArray *)ptr); - break; - case SOAP_TYPE_swad__groupType: - soap_serialize_swad__groupType(soap, (const struct swad__groupType *)ptr); - break; - case SOAP_TYPE_swad__getCourseInfoOutput: - soap_serialize_swad__getCourseInfoOutput(soap, (const struct swad__getCourseInfoOutput *)ptr); - break; - case SOAP_TYPE_swad__getCoursesOutput: - soap_serialize_swad__getCoursesOutput(soap, (const struct swad__getCoursesOutput *)ptr); - break; - case SOAP_TYPE_swad__coursesArray: - soap_serialize_swad__coursesArray(soap, (const struct swad__coursesArray *)ptr); - break; - case SOAP_TYPE_swad__course: - soap_serialize_swad__course(soap, (const struct swad__course *)ptr); - break; - case SOAP_TYPE_swad__getNewPasswordOutput: - soap_serialize_swad__getNewPasswordOutput(soap, (const struct swad__getNewPasswordOutput *)ptr); - break; - case SOAP_TYPE_swad__loginByUserPasswordKeyOutput: - soap_serialize_swad__loginByUserPasswordKeyOutput(soap, (const struct swad__loginByUserPasswordKeyOutput *)ptr); - break; - case SOAP_TYPE_swad__loginBySessionKeyOutput: - soap_serialize_swad__loginBySessionKeyOutput(soap, (const struct swad__loginBySessionKeyOutput *)ptr); - break; - case SOAP_TYPE_swad__createAccountOutput: - soap_serialize_swad__createAccountOutput(soap, (const struct swad__createAccountOutput *)ptr); - break; - case SOAP_TYPE_PointerToswad__sendMessageOutput: - soap_serialize_PointerToswad__sendMessageOutput(soap, (struct swad__sendMessageOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__sendNoticeOutput: - soap_serialize_PointerToswad__sendNoticeOutput(soap, (struct swad__sendNoticeOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__markNotificationsAsReadOutput: - soap_serialize_PointerToswad__markNotificationsAsReadOutput(soap, (struct swad__markNotificationsAsReadOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getNotificationsOutput: - soap_serialize_PointerToswad__getNotificationsOutput(soap, (struct swad__getNotificationsOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__sendAttendanceUsersOutput: - soap_serialize_PointerToswad__sendAttendanceUsersOutput(soap, (struct swad__sendAttendanceUsersOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getAttendanceUsersOutput: - soap_serialize_PointerToswad__getAttendanceUsersOutput(soap, (struct swad__getAttendanceUsersOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__sendAttendanceEventOutput: - soap_serialize_PointerToswad__sendAttendanceEventOutput(soap, (struct swad__sendAttendanceEventOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getAttendanceEventsOutput: - soap_serialize_PointerToswad__getAttendanceEventsOutput(soap, (struct swad__getAttendanceEventsOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getUsersOutput: - soap_serialize_PointerToswad__getUsersOutput(soap, (struct swad__getUsersOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getTestsOutput: - soap_serialize_PointerToswad__getTestsOutput(soap, (struct swad__getTestsOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getTestConfigOutput: - soap_serialize_PointerToswad__getTestConfigOutput(soap, (struct swad__getTestConfigOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getMarksOutput: - soap_serialize_PointerToswad__getMarksOutput(soap, (struct swad__getMarksOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getFileOutput: - soap_serialize_PointerToswad__getFileOutput(soap, (struct swad__getFileOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getDirectoryTreeOutput: - soap_serialize_PointerToswad__getDirectoryTreeOutput(soap, (struct swad__getDirectoryTreeOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__sendMyGroupsOutput: - soap_serialize_PointerToswad__sendMyGroupsOutput(soap, (struct swad__sendMyGroupsOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getGroupsOutput: - soap_serialize_PointerToswad__getGroupsOutput(soap, (struct swad__getGroupsOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getGroupTypesOutput: - soap_serialize_PointerToswad__getGroupTypesOutput(soap, (struct swad__getGroupTypesOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getCourseInfoOutput: - soap_serialize_PointerToswad__getCourseInfoOutput(soap, (struct swad__getCourseInfoOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getCoursesOutput: - soap_serialize_PointerToswad__getCoursesOutput(soap, (struct swad__getCoursesOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__getNewPasswordOutput: - soap_serialize_PointerToswad__getNewPasswordOutput(soap, (struct swad__getNewPasswordOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__loginBySessionKeyOutput: - soap_serialize_PointerToswad__loginBySessionKeyOutput(soap, (struct swad__loginBySessionKeyOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__loginByUserPasswordKeyOutput: - soap_serialize_PointerToswad__loginByUserPasswordKeyOutput(soap, (struct swad__loginByUserPasswordKeyOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__createAccountOutput: - soap_serialize_PointerToswad__createAccountOutput(soap, (struct swad__createAccountOutput *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__attendanceUser: - soap_serialize_PointerToswad__attendanceUser(soap, (struct swad__attendanceUser *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__attendanceEvent: - soap_serialize_PointerToswad__attendanceEvent(soap, (struct swad__attendanceEvent *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__user: - soap_serialize_PointerToswad__user(soap, (struct swad__user *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__questionTag: - soap_serialize_PointerToswad__questionTag(soap, (struct swad__questionTag *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__answer: - soap_serialize_PointerToswad__answer(soap, (struct swad__answer *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__question: - soap_serialize_PointerToswad__question(soap, (struct swad__question *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__tag: - soap_serialize_PointerToswad__tag(soap, (struct swad__tag *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__notification: - soap_serialize_PointerToswad__notification(soap, (struct swad__notification *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__group: - soap_serialize_PointerToswad__group(soap, (struct swad__group *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__groupType: - soap_serialize_PointerToswad__groupType(soap, (struct swad__groupType *const*)ptr); - break; - case SOAP_TYPE_PointerToswad__course: - soap_serialize_PointerToswad__course(soap, (struct swad__course *const*)ptr); - break; - case SOAP_TYPE__QName: - soap_serialize_string(soap, (char*const*)(void*)&ptr); - break; - case SOAP_TYPE_string: - soap_serialize_string(soap, (char*const*)(void*)&ptr); - break; - } -} -#endif - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap *soap, char *a) -{ - (void)soap; /* appease -Wall -Werror */ -#ifdef SOAP_DEFAULT_byte - *a = SOAP_DEFAULT_byte; -#else - *a = (char)0; -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap *soap, const char *tag, int id, const char *a, const char *type) -{ - return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_byte); -} - -SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type) -{ char *p; - p = soap_inbyte(soap, tag, a, type, SOAP_TYPE_byte); - return p; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap *soap, const char *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_byte); - if (soap_out_byte(soap, tag?tag:"byte", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap *soap, char *p, const char *tag, const char *type) -{ - if ((p = soap_in_byte(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap *soap, int *a) -{ - (void)soap; /* appease -Wall -Werror */ -#ifdef SOAP_DEFAULT_int - *a = SOAP_DEFAULT_int; -#else - *a = (int)0; -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap *soap, const char *tag, int id, const int *a, const char *type) -{ - return soap_outint(soap, tag, id, a, type, SOAP_TYPE_int); -} - -SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type) -{ int *p; - p = soap_inint(soap, tag, a, type, SOAP_TYPE_int); - return p; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap *soap, const int *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_int); - if (soap_out_int(soap, tag?tag:"int", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap *soap, int *p, const char *tag, const char *type) -{ - if ((p = soap_in_int(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_long(struct soap *soap, long *a) -{ - (void)soap; /* appease -Wall -Werror */ -#ifdef SOAP_DEFAULT_long - *a = SOAP_DEFAULT_long; -#else - *a = (long)0; -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_long(struct soap *soap, const char *tag, int id, const long *a, const char *type) -{ - return soap_outlong(soap, tag, id, a, type, SOAP_TYPE_long); -} - -SOAP_FMAC3 long * SOAP_FMAC4 soap_in_long(struct soap *soap, const char *tag, long *a, const char *type) -{ long *p; - p = soap_inlong(soap, tag, a, type, SOAP_TYPE_long); - return p; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_long(struct soap *soap, const long *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_long); - if (soap_out_long(soap, tag?tag:"long", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 long * SOAP_FMAC4 soap_get_long(struct soap *soap, long *p, const char *tag, const char *type) -{ - if ((p = soap_in_long(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default__QName(soap, &a->faultcode); - soap_default_string(soap, &a->faultstring); - soap_default_string(soap, &a->faultactor); - a->detail = NULL; - a->SOAP_ENV__Code = NULL; - a->SOAP_ENV__Reason = NULL; - soap_default_string(soap, &a->SOAP_ENV__Node); - soap_default_string(soap, &a->SOAP_ENV__Role); - a->SOAP_ENV__Detail = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize__QName(soap, &a->faultcode); - soap_serialize_string(soap, &a->faultstring); - soap_serialize_string(soap, &a->faultactor); - soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->detail); - soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Code); - soap_serialize_PointerToSOAP_ENV__Reason(soap, &a->SOAP_ENV__Reason); - soap_serialize_string(soap, &a->SOAP_ENV__Node); - soap_serialize_string(soap, &a->SOAP_ENV__Role); - soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->SOAP_ENV__Detail); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Fault *a, const char *type) -{ - const char *soap_tmp_faultcode = soap_QName2s(soap, a->faultcode); - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Fault), type)) - return soap->error; - if (soap_out__QName(soap, "faultcode", -1, (char*const*)(void*)&soap_tmp_faultcode, "")) - return soap->error; - if (soap_out_string(soap, "faultstring", -1, &a->faultstring, "")) - return soap->error; - if (soap_out_string(soap, "faultactor", -1, &a->faultactor, "")) - return soap->error; - if (soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, "")) - return soap->error; - if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, "")) - return soap->error; - if (soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, "")) - return soap->error; - if (soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, "")) - return soap->error; - if (soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, "")) - return soap->error; - if (soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap *soap, const char *tag, struct SOAP_ENV__Fault *a, const char *type) -{ - size_t soap_flag_faultcode = 1; - size_t soap_flag_faultstring = 1; - size_t soap_flag_faultactor = 1; - size_t soap_flag_detail = 1; - size_t soap_flag_SOAP_ENV__Code = 1; - size_t soap_flag_SOAP_ENV__Reason = 1; - size_t soap_flag_SOAP_ENV__Node = 1; - size_t soap_flag_SOAP_ENV__Role = 1; - size_t soap_flag_SOAP_ENV__Detail = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct SOAP_ENV__Fault *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Fault, sizeof(struct SOAP_ENV__Fault), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_SOAP_ENV__Fault(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_faultcode && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in__QName(soap, "faultcode", &a->faultcode, "")) - { soap_flag_faultcode--; - continue; - } - if (soap_flag_faultstring && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "faultstring", &a->faultstring, "xsd:string")) - { soap_flag_faultstring--; - continue; - } - if (soap_flag_faultactor && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "faultactor", &a->faultactor, "xsd:string")) - { soap_flag_faultactor--; - continue; - } - if (soap_flag_detail && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_PointerToSOAP_ENV__Detail(soap, "detail", &a->detail, "")) - { soap_flag_detail--; - continue; - } - if (soap_flag_SOAP_ENV__Code && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", &a->SOAP_ENV__Code, "")) - { soap_flag_SOAP_ENV__Code--; - continue; - } - if (soap_flag_SOAP_ENV__Reason && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", &a->SOAP_ENV__Reason, "")) - { soap_flag_SOAP_ENV__Reason--; - continue; - } - if (soap_flag_SOAP_ENV__Node && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "SOAP-ENV:Node", &a->SOAP_ENV__Node, "xsd:string")) - { soap_flag_SOAP_ENV__Node--; - continue; - } - if (soap_flag_SOAP_ENV__Role && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "SOAP-ENV:Role", &a->SOAP_ENV__Role, "xsd:string")) - { soap_flag_SOAP_ENV__Role--; - continue; - } - if (soap_flag_SOAP_ENV__Detail && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", &a->SOAP_ENV__Detail, "")) - { soap_flag_SOAP_ENV__Detail--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct SOAP_ENV__Fault *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Fault, 0, sizeof(struct SOAP_ENV__Fault), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Fault); - if (soap_out_SOAP_ENV__Fault(soap, tag?tag:"SOAP-ENV:Fault", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p, const char *tag, const char *type) -{ - if ((p = soap_in_SOAP_ENV__Fault(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->SOAP_ENV__Text); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->SOAP_ENV__Text); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Reason *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Reason), type)) - return soap->error; - if (soap->lang) - soap_set_attr(soap, "xml:lang", soap->lang, 1); - if (soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason *a, const char *type) -{ - size_t soap_flag_SOAP_ENV__Text = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct SOAP_ENV__Reason *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_SOAP_ENV__Reason(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_SOAP_ENV__Text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "SOAP-ENV:Text", &a->SOAP_ENV__Text, "xsd:string")) - { soap_flag_SOAP_ENV__Text--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct SOAP_ENV__Reason *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Reason, 0, sizeof(struct SOAP_ENV__Reason), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Reason); - if (soap_out_SOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p, const char *tag, const char *type) -{ - if ((p = soap_in_SOAP_ENV__Reason(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - a->__any = NULL; - a->__type = 0; - a->fault = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_markelement(soap, a->fault, a->__type); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Detail *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Detail), type)) - return soap->error; - soap_outliteral(soap, "-any", &a->__any, NULL); - if (soap_putelement(soap, a->fault, "fault", -1, a->__type)) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail *a, const char *type) -{ - size_t soap_flag___any = 1; - size_t soap_flag_fault = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct SOAP_ENV__Detail *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_SOAP_ENV__Detail(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_fault && soap->error == SOAP_TAG_MISMATCH) - if ((a->fault = soap_getelement(soap, &a->__type))) - { soap_flag_fault = 0; - continue; - } - if (soap_flag___any && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_inliteral(soap, "-any", &a->__any)) - { soap_flag___any--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct SOAP_ENV__Detail *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Detail, 0, sizeof(struct SOAP_ENV__Detail), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Detail); - if (soap_out_SOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p, const char *tag, const char *type) -{ - if ((p = soap_in_SOAP_ENV__Detail(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default__QName(soap, &a->SOAP_ENV__Value); - a->SOAP_ENV__Subcode = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize__QName(soap, &a->SOAP_ENV__Value); - soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Subcode); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Code *a, const char *type) -{ - const char *soap_tmp_SOAP_ENV__Value = soap_QName2s(soap, a->SOAP_ENV__Value); - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Code), type)) - return soap->error; - if (soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)(void*)&soap_tmp_SOAP_ENV__Value, "")) - return soap->error; - if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code *a, const char *type) -{ - size_t soap_flag_SOAP_ENV__Value = 1; - size_t soap_flag_SOAP_ENV__Subcode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct SOAP_ENV__Code *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_SOAP_ENV__Code(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_SOAP_ENV__Value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in__QName(soap, "SOAP-ENV:Value", &a->SOAP_ENV__Value, "")) - { soap_flag_SOAP_ENV__Value--; - continue; - } - if (soap_flag_SOAP_ENV__Subcode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", &a->SOAP_ENV__Subcode, "")) - { soap_flag_SOAP_ENV__Subcode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct SOAP_ENV__Code *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Code, 0, sizeof(struct SOAP_ENV__Code), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Code); - if (soap_out_SOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p, const char *tag, const char *type) -{ - if ((p = soap_in_SOAP_ENV__Code(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Header *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type)) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap *soap, const char *tag, struct SOAP_ENV__Header *a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct SOAP_ENV__Header *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Header, sizeof(struct SOAP_ENV__Header), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_SOAP_ENV__Header(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct SOAP_ENV__Header *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Header, 0, sizeof(struct SOAP_ENV__Header), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Header); - if (soap_out_SOAP_ENV__Header(soap, tag?tag:"SOAP-ENV:Header", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p, const char *tag, const char *type) -{ - if ((p = soap_in_SOAP_ENV__Header(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMessage(struct soap *soap, struct swad__sendMessage *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->messageCode); - soap_default_string(soap, &a->to); - soap_default_string(soap, &a->subject); - soap_default_string(soap, &a->body); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMessage(struct soap *soap, const struct swad__sendMessage *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->to); - soap_serialize_string(soap, &a->subject); - soap_serialize_string(soap, &a->body); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMessage(struct soap *soap, const char *tag, int id, const struct swad__sendMessage *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendMessage), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "messageCode", -1, &a->messageCode, "")) - return soap->error; - if (soap_out_string(soap, "to", -1, &a->to, "")) - return soap->error; - if (soap_out_string(soap, "subject", -1, &a->subject, "")) - return soap->error; - if (soap_out_string(soap, "body", -1, &a->body, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendMessage * SOAP_FMAC4 soap_in_swad__sendMessage(struct soap *soap, const char *tag, struct swad__sendMessage *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_messageCode = 1; - size_t soap_flag_to = 1; - size_t soap_flag_subject = 1; - size_t soap_flag_body = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendMessage *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendMessage, sizeof(struct swad__sendMessage), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendMessage(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_messageCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "messageCode", &a->messageCode, "xsd:int")) - { soap_flag_messageCode--; - continue; - } - if (soap_flag_to && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "to", &a->to, "xsd:string")) - { soap_flag_to--; - continue; - } - if (soap_flag_subject && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "subject", &a->subject, "xsd:string")) - { soap_flag_subject--; - continue; - } - if (soap_flag_body && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "body", &a->body, "xsd:string")) - { soap_flag_body--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendMessage *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendMessage, 0, sizeof(struct swad__sendMessage), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_messageCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMessage(struct soap *soap, const struct swad__sendMessage *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendMessage); - if (soap_out_swad__sendMessage(soap, tag?tag:"swad:sendMessage", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendMessage * SOAP_FMAC4 soap_get_swad__sendMessage(struct soap *soap, struct swad__sendMessage *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendMessage(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendNotice(struct soap *soap, struct swad__sendNotice *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); - soap_default_string(soap, &a->body); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendNotice(struct soap *soap, const struct swad__sendNotice *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->body); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendNotice(struct soap *soap, const char *tag, int id, const struct swad__sendNotice *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendNotice), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_string(soap, "body", -1, &a->body, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendNotice * SOAP_FMAC4 soap_in_swad__sendNotice(struct soap *soap, const char *tag, struct swad__sendNotice *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_body = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendNotice *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendNotice, sizeof(struct swad__sendNotice), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendNotice(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_body && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "body", &a->body, "xsd:string")) - { soap_flag_body--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendNotice *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendNotice, 0, sizeof(struct swad__sendNotice), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendNotice(struct soap *soap, const struct swad__sendNotice *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendNotice); - if (soap_out_swad__sendNotice(soap, tag?tag:"swad:sendNotice", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendNotice * SOAP_FMAC4 soap_get_swad__sendNotice(struct soap *soap, struct swad__sendNotice *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendNotice(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__markNotificationsAsRead(struct soap *soap, struct swad__markNotificationsAsRead *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_string(soap, &a->notifications); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__markNotificationsAsRead(struct soap *soap, const struct swad__markNotificationsAsRead *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->notifications); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__markNotificationsAsRead(struct soap *soap, const char *tag, int id, const struct swad__markNotificationsAsRead *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__markNotificationsAsRead), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_string(soap, "notifications", -1, &a->notifications, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__markNotificationsAsRead * SOAP_FMAC4 soap_in_swad__markNotificationsAsRead(struct soap *soap, const char *tag, struct swad__markNotificationsAsRead *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_notifications = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__markNotificationsAsRead *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__markNotificationsAsRead, sizeof(struct swad__markNotificationsAsRead), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__markNotificationsAsRead(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_notifications && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "notifications", &a->notifications, "xsd:string")) - { soap_flag_notifications--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__markNotificationsAsRead *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__markNotificationsAsRead, 0, sizeof(struct swad__markNotificationsAsRead), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__markNotificationsAsRead(struct soap *soap, const struct swad__markNotificationsAsRead *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__markNotificationsAsRead); - if (soap_out_swad__markNotificationsAsRead(soap, tag?tag:"swad:markNotificationsAsRead", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__markNotificationsAsRead * SOAP_FMAC4 soap_get_swad__markNotificationsAsRead(struct soap *soap, struct swad__markNotificationsAsRead *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__markNotificationsAsRead(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNotifications(struct soap *soap, struct swad__getNotifications *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_long(soap, &a->beginTime); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNotifications(struct soap *soap, const struct swad__getNotifications *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNotifications(struct soap *soap, const char *tag, int id, const struct swad__getNotifications *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getNotifications), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_long(soap, "beginTime", -1, &a->beginTime, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getNotifications * SOAP_FMAC4 soap_in_swad__getNotifications(struct soap *soap, const char *tag, struct swad__getNotifications *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_beginTime = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getNotifications *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getNotifications, sizeof(struct swad__getNotifications), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getNotifications(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_beginTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_long(soap, "beginTime", &a->beginTime, "xsd:long")) - { soap_flag_beginTime--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getNotifications *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getNotifications, 0, sizeof(struct swad__getNotifications), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_beginTime > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNotifications(struct soap *soap, const struct swad__getNotifications *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getNotifications); - if (soap_out_swad__getNotifications(soap, tag?tag:"swad:getNotifications", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getNotifications * SOAP_FMAC4 soap_get_swad__getNotifications(struct soap *soap, struct swad__getNotifications *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getNotifications(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceUsers(struct soap *soap, struct swad__sendAttendanceUsers *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->attendanceEventCode); - soap_default_string(soap, &a->users); - soap_default_int(soap, &a->setOthersAsAbsent); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceUsers(struct soap *soap, const struct swad__sendAttendanceUsers *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->users); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceUsers(struct soap *soap, const char *tag, int id, const struct swad__sendAttendanceUsers *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendAttendanceUsers), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "attendanceEventCode", -1, &a->attendanceEventCode, "")) - return soap->error; - if (soap_out_string(soap, "users", -1, &a->users, "")) - return soap->error; - if (soap_out_int(soap, "setOthersAsAbsent", -1, &a->setOthersAsAbsent, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendAttendanceUsers * SOAP_FMAC4 soap_in_swad__sendAttendanceUsers(struct soap *soap, const char *tag, struct swad__sendAttendanceUsers *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_attendanceEventCode = 1; - size_t soap_flag_users = 1; - size_t soap_flag_setOthersAsAbsent = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendAttendanceUsers *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendAttendanceUsers, sizeof(struct swad__sendAttendanceUsers), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendAttendanceUsers(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_attendanceEventCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "attendanceEventCode", &a->attendanceEventCode, "xsd:int")) - { soap_flag_attendanceEventCode--; - continue; - } - if (soap_flag_users && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "users", &a->users, "xsd:string")) - { soap_flag_users--; - continue; - } - if (soap_flag_setOthersAsAbsent && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "setOthersAsAbsent", &a->setOthersAsAbsent, "xsd:int")) - { soap_flag_setOthersAsAbsent--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendAttendanceUsers *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendAttendanceUsers, 0, sizeof(struct swad__sendAttendanceUsers), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_attendanceEventCode > 0 || soap_flag_setOthersAsAbsent > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceUsers(struct soap *soap, const struct swad__sendAttendanceUsers *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendAttendanceUsers); - if (soap_out_swad__sendAttendanceUsers(soap, tag?tag:"swad:sendAttendanceUsers", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendAttendanceUsers * SOAP_FMAC4 soap_get_swad__sendAttendanceUsers(struct soap *soap, struct swad__sendAttendanceUsers *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendAttendanceUsers(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceUsers(struct soap *soap, struct swad__getAttendanceUsers *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->attendanceEventCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceUsers(struct soap *soap, const struct swad__getAttendanceUsers *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceUsers(struct soap *soap, const char *tag, int id, const struct swad__getAttendanceUsers *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getAttendanceUsers), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "attendanceEventCode", -1, &a->attendanceEventCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getAttendanceUsers * SOAP_FMAC4 soap_in_swad__getAttendanceUsers(struct soap *soap, const char *tag, struct swad__getAttendanceUsers *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_attendanceEventCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getAttendanceUsers *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getAttendanceUsers, sizeof(struct swad__getAttendanceUsers), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getAttendanceUsers(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_attendanceEventCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "attendanceEventCode", &a->attendanceEventCode, "xsd:int")) - { soap_flag_attendanceEventCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getAttendanceUsers *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getAttendanceUsers, 0, sizeof(struct swad__getAttendanceUsers), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_attendanceEventCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceUsers(struct soap *soap, const struct swad__getAttendanceUsers *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getAttendanceUsers); - if (soap_out_swad__getAttendanceUsers(soap, tag?tag:"swad:getAttendanceUsers", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getAttendanceUsers * SOAP_FMAC4 soap_get_swad__getAttendanceUsers(struct soap *soap, struct swad__getAttendanceUsers *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getAttendanceUsers(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceEvent(struct soap *soap, struct swad__sendAttendanceEvent *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->attendanceEventCode); - soap_default_int(soap, &a->courseCode); - soap_default_int(soap, &a->hidden); - soap_default_int(soap, &a->startTime); - soap_default_int(soap, &a->endTime); - soap_default_int(soap, &a->commentsTeachersVisible); - soap_default_string(soap, &a->title); - soap_default_string(soap, &a->text); - soap_default_string(soap, &a->groups); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceEvent(struct soap *soap, const struct swad__sendAttendanceEvent *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->title); - soap_serialize_string(soap, &a->text); - soap_serialize_string(soap, &a->groups); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceEvent(struct soap *soap, const char *tag, int id, const struct swad__sendAttendanceEvent *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendAttendanceEvent), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "attendanceEventCode", -1, &a->attendanceEventCode, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_int(soap, "hidden", -1, &a->hidden, "")) - return soap->error; - if (soap_out_int(soap, "startTime", -1, &a->startTime, "")) - return soap->error; - if (soap_out_int(soap, "endTime", -1, &a->endTime, "")) - return soap->error; - if (soap_out_int(soap, "commentsTeachersVisible", -1, &a->commentsTeachersVisible, "")) - return soap->error; - if (soap_out_string(soap, "title", -1, &a->title, "")) - return soap->error; - if (soap_out_string(soap, "text", -1, &a->text, "")) - return soap->error; - if (soap_out_string(soap, "groups", -1, &a->groups, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendAttendanceEvent * SOAP_FMAC4 soap_in_swad__sendAttendanceEvent(struct soap *soap, const char *tag, struct swad__sendAttendanceEvent *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_attendanceEventCode = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_hidden = 1; - size_t soap_flag_startTime = 1; - size_t soap_flag_endTime = 1; - size_t soap_flag_commentsTeachersVisible = 1; - size_t soap_flag_title = 1; - size_t soap_flag_text = 1; - size_t soap_flag_groups = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendAttendanceEvent *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendAttendanceEvent, sizeof(struct swad__sendAttendanceEvent), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendAttendanceEvent(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_attendanceEventCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "attendanceEventCode", &a->attendanceEventCode, "xsd:int")) - { soap_flag_attendanceEventCode--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_hidden && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "hidden", &a->hidden, "xsd:int")) - { soap_flag_hidden--; - continue; - } - if (soap_flag_startTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "startTime", &a->startTime, "xsd:int")) - { soap_flag_startTime--; - continue; - } - if (soap_flag_endTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "endTime", &a->endTime, "xsd:int")) - { soap_flag_endTime--; - continue; - } - if (soap_flag_commentsTeachersVisible && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "commentsTeachersVisible", &a->commentsTeachersVisible, "xsd:int")) - { soap_flag_commentsTeachersVisible--; - continue; - } - if (soap_flag_title && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "title", &a->title, "xsd:string")) - { soap_flag_title--; - continue; - } - if (soap_flag_text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "text", &a->text, "xsd:string")) - { soap_flag_text--; - continue; - } - if (soap_flag_groups && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "groups", &a->groups, "xsd:string")) - { soap_flag_groups--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendAttendanceEvent *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendAttendanceEvent, 0, sizeof(struct swad__sendAttendanceEvent), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_attendanceEventCode > 0 || soap_flag_courseCode > 0 || soap_flag_hidden > 0 || soap_flag_startTime > 0 || soap_flag_endTime > 0 || soap_flag_commentsTeachersVisible > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceEvent(struct soap *soap, const struct swad__sendAttendanceEvent *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendAttendanceEvent); - if (soap_out_swad__sendAttendanceEvent(soap, tag?tag:"swad:sendAttendanceEvent", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendAttendanceEvent * SOAP_FMAC4 soap_get_swad__sendAttendanceEvent(struct soap *soap, struct swad__sendAttendanceEvent *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendAttendanceEvent(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceEvents(struct soap *soap, struct swad__getAttendanceEvents *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceEvents(struct soap *soap, const struct swad__getAttendanceEvents *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceEvents(struct soap *soap, const char *tag, int id, const struct swad__getAttendanceEvents *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getAttendanceEvents), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getAttendanceEvents * SOAP_FMAC4 soap_in_swad__getAttendanceEvents(struct soap *soap, const char *tag, struct swad__getAttendanceEvents *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getAttendanceEvents *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getAttendanceEvents, sizeof(struct swad__getAttendanceEvents), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getAttendanceEvents(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getAttendanceEvents *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getAttendanceEvents, 0, sizeof(struct swad__getAttendanceEvents), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceEvents(struct soap *soap, const struct swad__getAttendanceEvents *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getAttendanceEvents); - if (soap_out_swad__getAttendanceEvents(soap, tag?tag:"swad:getAttendanceEvents", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getAttendanceEvents * SOAP_FMAC4 soap_get_swad__getAttendanceEvents(struct soap *soap, struct swad__getAttendanceEvents *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getAttendanceEvents(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getUsers(struct soap *soap, struct swad__getUsers *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); - soap_default_int(soap, &a->groupCode); - soap_default_int(soap, &a->userRole); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getUsers(struct soap *soap, const struct swad__getUsers *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getUsers(struct soap *soap, const char *tag, int id, const struct swad__getUsers *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getUsers), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_int(soap, "groupCode", -1, &a->groupCode, "")) - return soap->error; - if (soap_out_int(soap, "userRole", -1, &a->userRole, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getUsers * SOAP_FMAC4 soap_in_swad__getUsers(struct soap *soap, const char *tag, struct swad__getUsers *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_groupCode = 1; - size_t soap_flag_userRole = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getUsers *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getUsers, sizeof(struct swad__getUsers), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getUsers(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_groupCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "groupCode", &a->groupCode, "xsd:int")) - { soap_flag_groupCode--; - continue; - } - if (soap_flag_userRole && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userRole", &a->userRole, "xsd:int")) - { soap_flag_userRole--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getUsers *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getUsers, 0, sizeof(struct swad__getUsers), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0 || soap_flag_groupCode > 0 || soap_flag_userRole > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getUsers(struct soap *soap, const struct swad__getUsers *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getUsers); - if (soap_out_swad__getUsers(soap, tag?tag:"swad:getUsers", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getUsers * SOAP_FMAC4 soap_get_swad__getUsers(struct soap *soap, struct swad__getUsers *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getUsers(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTests(struct soap *soap, struct swad__getTests *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); - soap_default_long(soap, &a->beginTime); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTests(struct soap *soap, const struct swad__getTests *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTests(struct soap *soap, const char *tag, int id, const struct swad__getTests *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getTests), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_long(soap, "beginTime", -1, &a->beginTime, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getTests * SOAP_FMAC4 soap_in_swad__getTests(struct soap *soap, const char *tag, struct swad__getTests *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_beginTime = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getTests *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getTests, sizeof(struct swad__getTests), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getTests(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_beginTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_long(soap, "beginTime", &a->beginTime, "xsd:long")) - { soap_flag_beginTime--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getTests *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getTests, 0, sizeof(struct swad__getTests), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0 || soap_flag_beginTime > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTests(struct soap *soap, const struct swad__getTests *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getTests); - if (soap_out_swad__getTests(soap, tag?tag:"swad:getTests", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getTests * SOAP_FMAC4 soap_get_swad__getTests(struct soap *soap, struct swad__getTests *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getTests(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTestConfig(struct soap *soap, struct swad__getTestConfig *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTestConfig(struct soap *soap, const struct swad__getTestConfig *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTestConfig(struct soap *soap, const char *tag, int id, const struct swad__getTestConfig *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getTestConfig), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getTestConfig * SOAP_FMAC4 soap_in_swad__getTestConfig(struct soap *soap, const char *tag, struct swad__getTestConfig *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getTestConfig *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getTestConfig, sizeof(struct swad__getTestConfig), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getTestConfig(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getTestConfig *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getTestConfig, 0, sizeof(struct swad__getTestConfig), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTestConfig(struct soap *soap, const struct swad__getTestConfig *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getTestConfig); - if (soap_out_swad__getTestConfig(soap, tag?tag:"swad:getTestConfig", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getTestConfig * SOAP_FMAC4 soap_get_swad__getTestConfig(struct soap *soap, struct swad__getTestConfig *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getTestConfig(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getMarks(struct soap *soap, struct swad__getMarks *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->fileCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getMarks(struct soap *soap, const struct swad__getMarks *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getMarks(struct soap *soap, const char *tag, int id, const struct swad__getMarks *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getMarks), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "fileCode", -1, &a->fileCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getMarks * SOAP_FMAC4 soap_in_swad__getMarks(struct soap *soap, const char *tag, struct swad__getMarks *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_fileCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getMarks *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getMarks, sizeof(struct swad__getMarks), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getMarks(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_fileCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "fileCode", &a->fileCode, "xsd:int")) - { soap_flag_fileCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getMarks *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getMarks, 0, sizeof(struct swad__getMarks), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_fileCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getMarks(struct soap *soap, const struct swad__getMarks *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getMarks); - if (soap_out_swad__getMarks(soap, tag?tag:"swad:getMarks", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getMarks * SOAP_FMAC4 soap_get_swad__getMarks(struct soap *soap, struct swad__getMarks *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getMarks(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getFile(struct soap *soap, struct swad__getFile *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->fileCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getFile(struct soap *soap, const struct swad__getFile *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getFile(struct soap *soap, const char *tag, int id, const struct swad__getFile *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getFile), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "fileCode", -1, &a->fileCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getFile * SOAP_FMAC4 soap_in_swad__getFile(struct soap *soap, const char *tag, struct swad__getFile *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_fileCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getFile *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getFile, sizeof(struct swad__getFile), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getFile(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_fileCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "fileCode", &a->fileCode, "xsd:int")) - { soap_flag_fileCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getFile *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getFile, 0, sizeof(struct swad__getFile), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_fileCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getFile(struct soap *soap, const struct swad__getFile *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getFile); - if (soap_out_swad__getFile(soap, tag?tag:"swad:getFile", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getFile * SOAP_FMAC4 soap_get_swad__getFile(struct soap *soap, struct swad__getFile *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getFile(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getDirectoryTree(struct soap *soap, struct swad__getDirectoryTree *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); - soap_default_int(soap, &a->groupCode); - soap_default_int(soap, &a->treeCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getDirectoryTree(struct soap *soap, const struct swad__getDirectoryTree *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getDirectoryTree(struct soap *soap, const char *tag, int id, const struct swad__getDirectoryTree *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getDirectoryTree), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_int(soap, "groupCode", -1, &a->groupCode, "")) - return soap->error; - if (soap_out_int(soap, "treeCode", -1, &a->treeCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getDirectoryTree * SOAP_FMAC4 soap_in_swad__getDirectoryTree(struct soap *soap, const char *tag, struct swad__getDirectoryTree *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_groupCode = 1; - size_t soap_flag_treeCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getDirectoryTree *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getDirectoryTree, sizeof(struct swad__getDirectoryTree), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getDirectoryTree(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_groupCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "groupCode", &a->groupCode, "xsd:int")) - { soap_flag_groupCode--; - continue; - } - if (soap_flag_treeCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "treeCode", &a->treeCode, "xsd:int")) - { soap_flag_treeCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getDirectoryTree *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getDirectoryTree, 0, sizeof(struct swad__getDirectoryTree), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0 || soap_flag_groupCode > 0 || soap_flag_treeCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getDirectoryTree(struct soap *soap, const struct swad__getDirectoryTree *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getDirectoryTree); - if (soap_out_swad__getDirectoryTree(soap, tag?tag:"swad:getDirectoryTree", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getDirectoryTree * SOAP_FMAC4 soap_get_swad__getDirectoryTree(struct soap *soap, struct swad__getDirectoryTree *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getDirectoryTree(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMyGroups(struct soap *soap, struct swad__sendMyGroups *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); - soap_default_string(soap, &a->myGroups); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMyGroups(struct soap *soap, const struct swad__sendMyGroups *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->myGroups); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMyGroups(struct soap *soap, const char *tag, int id, const struct swad__sendMyGroups *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendMyGroups), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_string(soap, "myGroups", -1, &a->myGroups, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendMyGroups * SOAP_FMAC4 soap_in_swad__sendMyGroups(struct soap *soap, const char *tag, struct swad__sendMyGroups *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_myGroups = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendMyGroups *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendMyGroups, sizeof(struct swad__sendMyGroups), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendMyGroups(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_myGroups && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "myGroups", &a->myGroups, "xsd:string")) - { soap_flag_myGroups--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendMyGroups *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendMyGroups, 0, sizeof(struct swad__sendMyGroups), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMyGroups(struct soap *soap, const struct swad__sendMyGroups *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendMyGroups); - if (soap_out_swad__sendMyGroups(soap, tag?tag:"swad:sendMyGroups", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendMyGroups * SOAP_FMAC4 soap_get_swad__sendMyGroups(struct soap *soap, struct swad__sendMyGroups *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendMyGroups(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroups(struct soap *soap, struct swad__getGroups *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroups(struct soap *soap, const struct swad__getGroups *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroups(struct soap *soap, const char *tag, int id, const struct swad__getGroups *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getGroups), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getGroups * SOAP_FMAC4 soap_in_swad__getGroups(struct soap *soap, const char *tag, struct swad__getGroups *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getGroups *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getGroups, sizeof(struct swad__getGroups), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getGroups(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getGroups *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getGroups, 0, sizeof(struct swad__getGroups), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroups(struct soap *soap, const struct swad__getGroups *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getGroups); - if (soap_out_swad__getGroups(soap, tag?tag:"swad:getGroups", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getGroups * SOAP_FMAC4 soap_get_swad__getGroups(struct soap *soap, struct swad__getGroups *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getGroups(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroupTypes(struct soap *soap, struct swad__getGroupTypes *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroupTypes(struct soap *soap, const struct swad__getGroupTypes *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroupTypes(struct soap *soap, const char *tag, int id, const struct swad__getGroupTypes *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getGroupTypes), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getGroupTypes * SOAP_FMAC4 soap_in_swad__getGroupTypes(struct soap *soap, const char *tag, struct swad__getGroupTypes *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getGroupTypes *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getGroupTypes, sizeof(struct swad__getGroupTypes), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getGroupTypes(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getGroupTypes *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getGroupTypes, 0, sizeof(struct swad__getGroupTypes), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroupTypes(struct soap *soap, const struct swad__getGroupTypes *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getGroupTypes); - if (soap_out_swad__getGroupTypes(soap, tag?tag:"swad:getGroupTypes", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getGroupTypes * SOAP_FMAC4 soap_get_swad__getGroupTypes(struct soap *soap, struct swad__getGroupTypes *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getGroupTypes(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCourseInfo(struct soap *soap, struct swad__getCourseInfo *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); - soap_default_int(soap, &a->courseCode); - soap_default_string(soap, &a->infoType); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCourseInfo(struct soap *soap, const struct swad__getCourseInfo *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->infoType); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCourseInfo(struct soap *soap, const char *tag, int id, const struct swad__getCourseInfo *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getCourseInfo), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_string(soap, "infoType", -1, &a->infoType, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getCourseInfo * SOAP_FMAC4 soap_in_swad__getCourseInfo(struct soap *soap, const char *tag, struct swad__getCourseInfo *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_infoType = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getCourseInfo *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getCourseInfo, sizeof(struct swad__getCourseInfo), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getCourseInfo(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_infoType && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "infoType", &a->infoType, "xsd:string")) - { soap_flag_infoType--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getCourseInfo *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getCourseInfo, 0, sizeof(struct swad__getCourseInfo), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCourseInfo(struct soap *soap, const struct swad__getCourseInfo *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getCourseInfo); - if (soap_out_swad__getCourseInfo(soap, tag?tag:"swad:getCourseInfo", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getCourseInfo * SOAP_FMAC4 soap_get_swad__getCourseInfo(struct soap *soap, struct swad__getCourseInfo *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getCourseInfo(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCourses(struct soap *soap, struct swad__getCourses *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->wsKey); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCourses(struct soap *soap, const struct swad__getCourses *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCourses(struct soap *soap, const char *tag, int id, const struct swad__getCourses *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getCourses), type)) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getCourses * SOAP_FMAC4 soap_in_swad__getCourses(struct soap *soap, const char *tag, struct swad__getCourses *a, const char *type) -{ - size_t soap_flag_wsKey = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getCourses *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getCourses, sizeof(struct swad__getCourses), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getCourses(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getCourses *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getCourses, 0, sizeof(struct swad__getCourses), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCourses(struct soap *soap, const struct swad__getCourses *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getCourses); - if (soap_out_swad__getCourses(soap, tag?tag:"swad:getCourses", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getCourses * SOAP_FMAC4 soap_get_swad__getCourses(struct soap *soap, struct swad__getCourses *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getCourses(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNewPassword(struct soap *soap, struct swad__getNewPassword *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->userID); - soap_default_string(soap, &a->appKey); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNewPassword(struct soap *soap, const struct swad__getNewPassword *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->userID); - soap_serialize_string(soap, &a->appKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNewPassword(struct soap *soap, const char *tag, int id, const struct swad__getNewPassword *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getNewPassword), type)) - return soap->error; - if (soap_out_string(soap, "userID", -1, &a->userID, "")) - return soap->error; - if (soap_out_string(soap, "appKey", -1, &a->appKey, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getNewPassword * SOAP_FMAC4 soap_in_swad__getNewPassword(struct soap *soap, const char *tag, struct swad__getNewPassword *a, const char *type) -{ - size_t soap_flag_userID = 1; - size_t soap_flag_appKey = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getNewPassword *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getNewPassword, sizeof(struct swad__getNewPassword), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getNewPassword(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userID", &a->userID, "xsd:string")) - { soap_flag_userID--; - continue; - } - if (soap_flag_appKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "appKey", &a->appKey, "xsd:string")) - { soap_flag_appKey--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getNewPassword *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getNewPassword, 0, sizeof(struct swad__getNewPassword), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNewPassword(struct soap *soap, const struct swad__getNewPassword *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getNewPassword); - if (soap_out_swad__getNewPassword(soap, tag?tag:"swad:getNewPassword", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getNewPassword * SOAP_FMAC4 soap_get_swad__getNewPassword(struct soap *soap, struct swad__getNewPassword *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getNewPassword(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginBySessionKey(struct soap *soap, struct swad__loginBySessionKey *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->sessionID); - soap_default_string(soap, &a->appKey); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginBySessionKey(struct soap *soap, const struct swad__loginBySessionKey *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->sessionID); - soap_serialize_string(soap, &a->appKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginBySessionKey(struct soap *soap, const char *tag, int id, const struct swad__loginBySessionKey *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__loginBySessionKey), type)) - return soap->error; - if (soap_out_string(soap, "sessionID", -1, &a->sessionID, "")) - return soap->error; - if (soap_out_string(soap, "appKey", -1, &a->appKey, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__loginBySessionKey * SOAP_FMAC4 soap_in_swad__loginBySessionKey(struct soap *soap, const char *tag, struct swad__loginBySessionKey *a, const char *type) -{ - size_t soap_flag_sessionID = 1; - size_t soap_flag_appKey = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__loginBySessionKey *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__loginBySessionKey, sizeof(struct swad__loginBySessionKey), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__loginBySessionKey(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_sessionID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "sessionID", &a->sessionID, "xsd:string")) - { soap_flag_sessionID--; - continue; - } - if (soap_flag_appKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "appKey", &a->appKey, "xsd:string")) - { soap_flag_appKey--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__loginBySessionKey *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__loginBySessionKey, 0, sizeof(struct swad__loginBySessionKey), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginBySessionKey(struct soap *soap, const struct swad__loginBySessionKey *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__loginBySessionKey); - if (soap_out_swad__loginBySessionKey(soap, tag?tag:"swad:loginBySessionKey", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__loginBySessionKey * SOAP_FMAC4 soap_get_swad__loginBySessionKey(struct soap *soap, struct swad__loginBySessionKey *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__loginBySessionKey(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginByUserPasswordKey(struct soap *soap, struct swad__loginByUserPasswordKey *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->userID); - soap_default_string(soap, &a->userPassword); - soap_default_string(soap, &a->appKey); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginByUserPasswordKey(struct soap *soap, const struct swad__loginByUserPasswordKey *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->userID); - soap_serialize_string(soap, &a->userPassword); - soap_serialize_string(soap, &a->appKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginByUserPasswordKey(struct soap *soap, const char *tag, int id, const struct swad__loginByUserPasswordKey *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__loginByUserPasswordKey), type)) - return soap->error; - if (soap_out_string(soap, "userID", -1, &a->userID, "")) - return soap->error; - if (soap_out_string(soap, "userPassword", -1, &a->userPassword, "")) - return soap->error; - if (soap_out_string(soap, "appKey", -1, &a->appKey, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__loginByUserPasswordKey * SOAP_FMAC4 soap_in_swad__loginByUserPasswordKey(struct soap *soap, const char *tag, struct swad__loginByUserPasswordKey *a, const char *type) -{ - size_t soap_flag_userID = 1; - size_t soap_flag_userPassword = 1; - size_t soap_flag_appKey = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__loginByUserPasswordKey *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__loginByUserPasswordKey, sizeof(struct swad__loginByUserPasswordKey), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__loginByUserPasswordKey(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userID", &a->userID, "xsd:string")) - { soap_flag_userID--; - continue; - } - if (soap_flag_userPassword && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPassword", &a->userPassword, "xsd:string")) - { soap_flag_userPassword--; - continue; - } - if (soap_flag_appKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "appKey", &a->appKey, "xsd:string")) - { soap_flag_appKey--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__loginByUserPasswordKey *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__loginByUserPasswordKey, 0, sizeof(struct swad__loginByUserPasswordKey), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginByUserPasswordKey(struct soap *soap, const struct swad__loginByUserPasswordKey *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__loginByUserPasswordKey); - if (soap_out_swad__loginByUserPasswordKey(soap, tag?tag:"swad:loginByUserPasswordKey", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__loginByUserPasswordKey * SOAP_FMAC4 soap_get_swad__loginByUserPasswordKey(struct soap *soap, struct swad__loginByUserPasswordKey *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__loginByUserPasswordKey(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__createAccount(struct soap *soap, struct swad__createAccount *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->userNickname); - soap_default_string(soap, &a->userEmail); - soap_default_string(soap, &a->userID); - soap_default_string(soap, &a->userPassword); - soap_default_string(soap, &a->appKey); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__createAccount(struct soap *soap, const struct swad__createAccount *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->userNickname); - soap_serialize_string(soap, &a->userEmail); - soap_serialize_string(soap, &a->userID); - soap_serialize_string(soap, &a->userPassword); - soap_serialize_string(soap, &a->appKey); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__createAccount(struct soap *soap, const char *tag, int id, const struct swad__createAccount *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__createAccount), type)) - return soap->error; - if (soap_out_string(soap, "userNickname", -1, &a->userNickname, "")) - return soap->error; - if (soap_out_string(soap, "userEmail", -1, &a->userEmail, "")) - return soap->error; - if (soap_out_string(soap, "userID", -1, &a->userID, "")) - return soap->error; - if (soap_out_string(soap, "userPassword", -1, &a->userPassword, "")) - return soap->error; - if (soap_out_string(soap, "appKey", -1, &a->appKey, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__createAccount * SOAP_FMAC4 soap_in_swad__createAccount(struct soap *soap, const char *tag, struct swad__createAccount *a, const char *type) -{ - size_t soap_flag_userNickname = 1; - size_t soap_flag_userEmail = 1; - size_t soap_flag_userID = 1; - size_t soap_flag_userPassword = 1; - size_t soap_flag_appKey = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__createAccount *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__createAccount, sizeof(struct swad__createAccount), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__createAccount(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userNickname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userNickname", &a->userNickname, "xsd:string")) - { soap_flag_userNickname--; - continue; - } - if (soap_flag_userEmail && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userEmail", &a->userEmail, "xsd:string")) - { soap_flag_userEmail--; - continue; - } - if (soap_flag_userID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userID", &a->userID, "xsd:string")) - { soap_flag_userID--; - continue; - } - if (soap_flag_userPassword && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPassword", &a->userPassword, "xsd:string")) - { soap_flag_userPassword--; - continue; - } - if (soap_flag_appKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "appKey", &a->appKey, "xsd:string")) - { soap_flag_appKey--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__createAccount *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__createAccount, 0, sizeof(struct swad__createAccount), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__createAccount(struct soap *soap, const struct swad__createAccount *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__createAccount); - if (soap_out_swad__createAccount(soap, tag?tag:"swad:createAccount", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__createAccount * SOAP_FMAC4 soap_get_swad__createAccount(struct soap *soap, struct swad__createAccount *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__createAccount(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMessageOutput(struct soap *soap, struct swad__sendMessageOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numUsers); - soap_default_swad__usersArray(soap, &a->usersArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMessageOutput(struct soap *soap, const struct swad__sendMessageOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__usersArray(soap, &a->usersArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMessageOutput(struct soap *soap, const char *tag, int id, const struct swad__sendMessageOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendMessageOutput), type)) - return soap->error; - if (soap_out_int(soap, "numUsers", -1, &a->numUsers, "")) - return soap->error; - if (soap_out_swad__usersArray(soap, "usersArray", -1, &a->usersArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendMessageOutput * SOAP_FMAC4 soap_in_swad__sendMessageOutput(struct soap *soap, const char *tag, struct swad__sendMessageOutput *a, const char *type) -{ - size_t soap_flag_numUsers = 1; - size_t soap_flag_usersArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendMessageOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendMessageOutput, sizeof(struct swad__sendMessageOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendMessageOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numUsers && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numUsers", &a->numUsers, "xsd:int")) - { soap_flag_numUsers--; - continue; - } - if (soap_flag_usersArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__usersArray(soap, "usersArray", &a->usersArray, "swad:usersArray")) - { soap_flag_usersArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendMessageOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendMessageOutput, 0, sizeof(struct swad__sendMessageOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numUsers > 0 || soap_flag_usersArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMessageOutput(struct soap *soap, const struct swad__sendMessageOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendMessageOutput); - if (soap_out_swad__sendMessageOutput(soap, tag?tag:"swad:sendMessageOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendMessageOutput * SOAP_FMAC4 soap_get_swad__sendMessageOutput(struct soap *soap, struct swad__sendMessageOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendMessageOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendNoticeOutput(struct soap *soap, struct swad__sendNoticeOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->noticeCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendNoticeOutput(struct soap *soap, const struct swad__sendNoticeOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendNoticeOutput(struct soap *soap, const char *tag, int id, const struct swad__sendNoticeOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendNoticeOutput), type)) - return soap->error; - if (soap_out_int(soap, "noticeCode", -1, &a->noticeCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendNoticeOutput * SOAP_FMAC4 soap_in_swad__sendNoticeOutput(struct soap *soap, const char *tag, struct swad__sendNoticeOutput *a, const char *type) -{ - size_t soap_flag_noticeCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendNoticeOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendNoticeOutput, sizeof(struct swad__sendNoticeOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendNoticeOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_noticeCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "noticeCode", &a->noticeCode, "xsd:int")) - { soap_flag_noticeCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendNoticeOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendNoticeOutput, 0, sizeof(struct swad__sendNoticeOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_noticeCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendNoticeOutput(struct soap *soap, const struct swad__sendNoticeOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendNoticeOutput); - if (soap_out_swad__sendNoticeOutput(soap, tag?tag:"swad:sendNoticeOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendNoticeOutput * SOAP_FMAC4 soap_get_swad__sendNoticeOutput(struct soap *soap, struct swad__sendNoticeOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendNoticeOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getMarksOutput(struct soap *soap, struct swad__getMarksOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->content); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getMarksOutput(struct soap *soap, const struct swad__getMarksOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->content); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getMarksOutput(struct soap *soap, const char *tag, int id, const struct swad__getMarksOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getMarksOutput), type)) - return soap->error; - if (soap_out_string(soap, "content", -1, &a->content, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getMarksOutput * SOAP_FMAC4 soap_in_swad__getMarksOutput(struct soap *soap, const char *tag, struct swad__getMarksOutput *a, const char *type) -{ - size_t soap_flag_content = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getMarksOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getMarksOutput, sizeof(struct swad__getMarksOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getMarksOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_content && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "content", &a->content, "xsd:string")) - { soap_flag_content--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getMarksOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getMarksOutput, 0, sizeof(struct swad__getMarksOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getMarksOutput(struct soap *soap, const struct swad__getMarksOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getMarksOutput); - if (soap_out_swad__getMarksOutput(soap, tag?tag:"swad:getMarksOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getMarksOutput * SOAP_FMAC4 soap_get_swad__getMarksOutput(struct soap *soap, struct swad__getMarksOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getMarksOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getFileOutput(struct soap *soap, struct swad__getFileOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->fileName); - soap_default_string(soap, &a->URL); - soap_default_int(soap, &a->size); - soap_default_int(soap, &a->time); - soap_default_string(soap, &a->license); - soap_default_string(soap, &a->publisherName); - soap_default_string(soap, &a->publisherPhoto); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getFileOutput(struct soap *soap, const struct swad__getFileOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->fileName); - soap_serialize_string(soap, &a->URL); - soap_serialize_string(soap, &a->license); - soap_serialize_string(soap, &a->publisherName); - soap_serialize_string(soap, &a->publisherPhoto); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getFileOutput(struct soap *soap, const char *tag, int id, const struct swad__getFileOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getFileOutput), type)) - return soap->error; - if (soap_out_string(soap, "fileName", -1, &a->fileName, "")) - return soap->error; - if (soap_out_string(soap, "URL", -1, &a->URL, "")) - return soap->error; - if (soap_out_int(soap, "size", -1, &a->size, "")) - return soap->error; - if (soap_out_int(soap, "time", -1, &a->time, "")) - return soap->error; - if (soap_out_string(soap, "license", -1, &a->license, "")) - return soap->error; - if (soap_out_string(soap, "publisherName", -1, &a->publisherName, "")) - return soap->error; - if (soap_out_string(soap, "publisherPhoto", -1, &a->publisherPhoto, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getFileOutput * SOAP_FMAC4 soap_in_swad__getFileOutput(struct soap *soap, const char *tag, struct swad__getFileOutput *a, const char *type) -{ - size_t soap_flag_fileName = 1; - size_t soap_flag_URL = 1; - size_t soap_flag_size = 1; - size_t soap_flag_time = 1; - size_t soap_flag_license = 1; - size_t soap_flag_publisherName = 1; - size_t soap_flag_publisherPhoto = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getFileOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getFileOutput, sizeof(struct swad__getFileOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getFileOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_fileName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "fileName", &a->fileName, "xsd:string")) - { soap_flag_fileName--; - continue; - } - if (soap_flag_URL && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "URL", &a->URL, "xsd:string")) - { soap_flag_URL--; - continue; - } - if (soap_flag_size && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "size", &a->size, "xsd:int")) - { soap_flag_size--; - continue; - } - if (soap_flag_time && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "time", &a->time, "xsd:int")) - { soap_flag_time--; - continue; - } - if (soap_flag_license && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "license", &a->license, "xsd:string")) - { soap_flag_license--; - continue; - } - if (soap_flag_publisherName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "publisherName", &a->publisherName, "xsd:string")) - { soap_flag_publisherName--; - continue; - } - if (soap_flag_publisherPhoto && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "publisherPhoto", &a->publisherPhoto, "xsd:string")) - { soap_flag_publisherPhoto--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getFileOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getFileOutput, 0, sizeof(struct swad__getFileOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_size > 0 || soap_flag_time > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getFileOutput(struct soap *soap, const struct swad__getFileOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getFileOutput); - if (soap_out_swad__getFileOutput(soap, tag?tag:"swad:getFileOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getFileOutput * SOAP_FMAC4 soap_get_swad__getFileOutput(struct soap *soap, struct swad__getFileOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getFileOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getDirectoryTreeOutput(struct soap *soap, struct swad__getDirectoryTreeOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->tree); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getDirectoryTreeOutput(struct soap *soap, const struct swad__getDirectoryTreeOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->tree); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getDirectoryTreeOutput(struct soap *soap, const char *tag, int id, const struct swad__getDirectoryTreeOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getDirectoryTreeOutput), type)) - return soap->error; - if (soap_out_string(soap, "tree", -1, &a->tree, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getDirectoryTreeOutput * SOAP_FMAC4 soap_in_swad__getDirectoryTreeOutput(struct soap *soap, const char *tag, struct swad__getDirectoryTreeOutput *a, const char *type) -{ - size_t soap_flag_tree = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getDirectoryTreeOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getDirectoryTreeOutput, sizeof(struct swad__getDirectoryTreeOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getDirectoryTreeOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_tree && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "tree", &a->tree, "xsd:string")) - { soap_flag_tree--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getDirectoryTreeOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getDirectoryTreeOutput, 0, sizeof(struct swad__getDirectoryTreeOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getDirectoryTreeOutput(struct soap *soap, const struct swad__getDirectoryTreeOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getDirectoryTreeOutput); - if (soap_out_swad__getDirectoryTreeOutput(soap, tag?tag:"swad:getDirectoryTreeOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getDirectoryTreeOutput * SOAP_FMAC4 soap_get_swad__getDirectoryTreeOutput(struct soap *soap, struct swad__getDirectoryTreeOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getDirectoryTreeOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceUsersOutput(struct soap *soap, struct swad__sendAttendanceUsersOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->success); - soap_default_int(soap, &a->numUsers); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceUsersOutput(struct soap *soap, const struct swad__sendAttendanceUsersOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceUsersOutput(struct soap *soap, const char *tag, int id, const struct swad__sendAttendanceUsersOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendAttendanceUsersOutput), type)) - return soap->error; - if (soap_out_int(soap, "success", -1, &a->success, "")) - return soap->error; - if (soap_out_int(soap, "numUsers", -1, &a->numUsers, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput * SOAP_FMAC4 soap_in_swad__sendAttendanceUsersOutput(struct soap *soap, const char *tag, struct swad__sendAttendanceUsersOutput *a, const char *type) -{ - size_t soap_flag_success = 1; - size_t soap_flag_numUsers = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendAttendanceUsersOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendAttendanceUsersOutput, sizeof(struct swad__sendAttendanceUsersOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendAttendanceUsersOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_success && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "success", &a->success, "xsd:int")) - { soap_flag_success--; - continue; - } - if (soap_flag_numUsers && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numUsers", &a->numUsers, "xsd:int")) - { soap_flag_numUsers--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendAttendanceUsersOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendAttendanceUsersOutput, 0, sizeof(struct swad__sendAttendanceUsersOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_success > 0 || soap_flag_numUsers > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceUsersOutput(struct soap *soap, const struct swad__sendAttendanceUsersOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendAttendanceUsersOutput); - if (soap_out_swad__sendAttendanceUsersOutput(soap, tag?tag:"swad:sendAttendanceUsersOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput * SOAP_FMAC4 soap_get_swad__sendAttendanceUsersOutput(struct soap *soap, struct swad__sendAttendanceUsersOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendAttendanceUsersOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceUsersOutput(struct soap *soap, struct swad__getAttendanceUsersOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numUsers); - soap_default_swad__attendanceUsersArray(soap, &a->usersArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceUsersOutput(struct soap *soap, const struct swad__getAttendanceUsersOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__attendanceUsersArray(soap, &a->usersArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceUsersOutput(struct soap *soap, const char *tag, int id, const struct swad__getAttendanceUsersOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getAttendanceUsersOutput), type)) - return soap->error; - if (soap_out_int(soap, "numUsers", -1, &a->numUsers, "")) - return soap->error; - if (soap_out_swad__attendanceUsersArray(soap, "usersArray", -1, &a->usersArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getAttendanceUsersOutput * SOAP_FMAC4 soap_in_swad__getAttendanceUsersOutput(struct soap *soap, const char *tag, struct swad__getAttendanceUsersOutput *a, const char *type) -{ - size_t soap_flag_numUsers = 1; - size_t soap_flag_usersArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getAttendanceUsersOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getAttendanceUsersOutput, sizeof(struct swad__getAttendanceUsersOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getAttendanceUsersOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numUsers && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numUsers", &a->numUsers, "xsd:int")) - { soap_flag_numUsers--; - continue; - } - if (soap_flag_usersArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__attendanceUsersArray(soap, "usersArray", &a->usersArray, "swad:attendanceUsersArray")) - { soap_flag_usersArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getAttendanceUsersOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getAttendanceUsersOutput, 0, sizeof(struct swad__getAttendanceUsersOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numUsers > 0 || soap_flag_usersArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceUsersOutput(struct soap *soap, const struct swad__getAttendanceUsersOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getAttendanceUsersOutput); - if (soap_out_swad__getAttendanceUsersOutput(soap, tag?tag:"swad:getAttendanceUsersOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getAttendanceUsersOutput * SOAP_FMAC4 soap_get_swad__getAttendanceUsersOutput(struct soap *soap, struct swad__getAttendanceUsersOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getAttendanceUsersOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceUsersArray(struct soap *soap, struct swad__attendanceUsersArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceUsersArray(struct soap *soap, struct swad__attendanceUsersArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__attendanceUsersArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__attendanceUser); - soap_serialize_swad__attendanceUser(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceUsersArray(struct soap *soap, const char *tag, int id, const struct swad__attendanceUsersArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__attendanceUsersArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__attendanceUser(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__attendanceUsersArray * SOAP_FMAC4 soap_in_swad__attendanceUsersArray(struct soap *soap, const char *tag, struct swad__attendanceUsersArray *a, const char *type) -{ int i, j; - struct swad__attendanceUser *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:attendanceUser") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__attendanceUsersArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__attendanceUsersArray, sizeof(struct swad__attendanceUsersArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__attendanceUsersArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__attendanceUser *)soap_malloc(soap, sizeof(struct swad__attendanceUser) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__attendanceUser(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__attendanceUser(soap, NULL, a->__ptr + i, "swad:attendanceUser")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__attendanceUser *)soap_push_block(soap, NULL, sizeof(struct swad__attendanceUser)); - if (!p) - return NULL; - soap_default_swad__attendanceUser(soap, p); - if (!soap_in_swad__attendanceUser(soap, NULL, p, "swad:attendanceUser")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__attendanceUser *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__attendanceUsersArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__attendanceUsersArray, 0, sizeof(struct swad__attendanceUsersArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceUsersArray(struct soap *soap, const struct swad__attendanceUsersArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__attendanceUsersArray); - if (soap_out_swad__attendanceUsersArray(soap, tag?tag:"swad:attendanceUsersArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__attendanceUsersArray * SOAP_FMAC4 soap_get_swad__attendanceUsersArray(struct soap *soap, struct swad__attendanceUsersArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__attendanceUsersArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceUser(struct soap *soap, struct swad__attendanceUser *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->userCode); - soap_default_string(soap, &a->userNickname); - soap_default_string(soap, &a->userID); - soap_default_string(soap, &a->userSurname1); - soap_default_string(soap, &a->userSurname2); - soap_default_string(soap, &a->userFirstname); - soap_default_string(soap, &a->userPhoto); - soap_default_int(soap, &a->present); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceUser(struct soap *soap, const struct swad__attendanceUser *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->userNickname); - soap_serialize_string(soap, &a->userID); - soap_serialize_string(soap, &a->userSurname1); - soap_serialize_string(soap, &a->userSurname2); - soap_serialize_string(soap, &a->userFirstname); - soap_serialize_string(soap, &a->userPhoto); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceUser(struct soap *soap, const char *tag, int id, const struct swad__attendanceUser *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__attendanceUser), type)) - return soap->error; - if (soap_out_int(soap, "userCode", -1, &a->userCode, "")) - return soap->error; - if (soap_out_string(soap, "userNickname", -1, &a->userNickname, "")) - return soap->error; - if (soap_out_string(soap, "userID", -1, &a->userID, "")) - return soap->error; - if (soap_out_string(soap, "userSurname1", -1, &a->userSurname1, "")) - return soap->error; - if (soap_out_string(soap, "userSurname2", -1, &a->userSurname2, "")) - return soap->error; - if (soap_out_string(soap, "userFirstname", -1, &a->userFirstname, "")) - return soap->error; - if (soap_out_string(soap, "userPhoto", -1, &a->userPhoto, "")) - return soap->error; - if (soap_out_int(soap, "present", -1, &a->present, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__attendanceUser * SOAP_FMAC4 soap_in_swad__attendanceUser(struct soap *soap, const char *tag, struct swad__attendanceUser *a, const char *type) -{ - size_t soap_flag_userCode = 1; - size_t soap_flag_userNickname = 1; - size_t soap_flag_userID = 1; - size_t soap_flag_userSurname1 = 1; - size_t soap_flag_userSurname2 = 1; - size_t soap_flag_userFirstname = 1; - size_t soap_flag_userPhoto = 1; - size_t soap_flag_present = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__attendanceUser *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__attendanceUser, sizeof(struct swad__attendanceUser), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__attendanceUser(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userCode", &a->userCode, "xsd:int")) - { soap_flag_userCode--; - continue; - } - if (soap_flag_userNickname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userNickname", &a->userNickname, "xsd:string")) - { soap_flag_userNickname--; - continue; - } - if (soap_flag_userID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userID", &a->userID, "xsd:string")) - { soap_flag_userID--; - continue; - } - if (soap_flag_userSurname1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname1", &a->userSurname1, "xsd:string")) - { soap_flag_userSurname1--; - continue; - } - if (soap_flag_userSurname2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname2", &a->userSurname2, "xsd:string")) - { soap_flag_userSurname2--; - continue; - } - if (soap_flag_userFirstname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userFirstname", &a->userFirstname, "xsd:string")) - { soap_flag_userFirstname--; - continue; - } - if (soap_flag_userPhoto && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPhoto", &a->userPhoto, "xsd:string")) - { soap_flag_userPhoto--; - continue; - } - if (soap_flag_present && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "present", &a->present, "xsd:int")) - { soap_flag_present--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__attendanceUser *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__attendanceUser, 0, sizeof(struct swad__attendanceUser), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_userCode > 0 || soap_flag_present > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceUser(struct soap *soap, const struct swad__attendanceUser *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__attendanceUser); - if (soap_out_swad__attendanceUser(soap, tag?tag:"swad:attendanceUser", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__attendanceUser * SOAP_FMAC4 soap_get_swad__attendanceUser(struct soap *soap, struct swad__attendanceUser *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__attendanceUser(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceEventOutput(struct soap *soap, struct swad__sendAttendanceEventOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->attendanceEventCode); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceEventOutput(struct soap *soap, const struct swad__sendAttendanceEventOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceEventOutput(struct soap *soap, const char *tag, int id, const struct swad__sendAttendanceEventOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendAttendanceEventOutput), type)) - return soap->error; - if (soap_out_int(soap, "attendanceEventCode", -1, &a->attendanceEventCode, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendAttendanceEventOutput * SOAP_FMAC4 soap_in_swad__sendAttendanceEventOutput(struct soap *soap, const char *tag, struct swad__sendAttendanceEventOutput *a, const char *type) -{ - size_t soap_flag_attendanceEventCode = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendAttendanceEventOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendAttendanceEventOutput, sizeof(struct swad__sendAttendanceEventOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendAttendanceEventOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_attendanceEventCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "attendanceEventCode", &a->attendanceEventCode, "xsd:int")) - { soap_flag_attendanceEventCode--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendAttendanceEventOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendAttendanceEventOutput, 0, sizeof(struct swad__sendAttendanceEventOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_attendanceEventCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceEventOutput(struct soap *soap, const struct swad__sendAttendanceEventOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendAttendanceEventOutput); - if (soap_out_swad__sendAttendanceEventOutput(soap, tag?tag:"swad:sendAttendanceEventOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendAttendanceEventOutput * SOAP_FMAC4 soap_get_swad__sendAttendanceEventOutput(struct soap *soap, struct swad__sendAttendanceEventOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendAttendanceEventOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceEventsOutput(struct soap *soap, struct swad__getAttendanceEventsOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numEvents); - soap_default_swad__attendanceEventsArray(soap, &a->eventsArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceEventsOutput(struct soap *soap, const struct swad__getAttendanceEventsOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__attendanceEventsArray(soap, &a->eventsArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceEventsOutput(struct soap *soap, const char *tag, int id, const struct swad__getAttendanceEventsOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getAttendanceEventsOutput), type)) - return soap->error; - if (soap_out_int(soap, "numEvents", -1, &a->numEvents, "")) - return soap->error; - if (soap_out_swad__attendanceEventsArray(soap, "eventsArray", -1, &a->eventsArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getAttendanceEventsOutput * SOAP_FMAC4 soap_in_swad__getAttendanceEventsOutput(struct soap *soap, const char *tag, struct swad__getAttendanceEventsOutput *a, const char *type) -{ - size_t soap_flag_numEvents = 1; - size_t soap_flag_eventsArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getAttendanceEventsOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getAttendanceEventsOutput, sizeof(struct swad__getAttendanceEventsOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getAttendanceEventsOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numEvents && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numEvents", &a->numEvents, "xsd:int")) - { soap_flag_numEvents--; - continue; - } - if (soap_flag_eventsArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__attendanceEventsArray(soap, "eventsArray", &a->eventsArray, "swad:attendanceEventsArray")) - { soap_flag_eventsArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getAttendanceEventsOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getAttendanceEventsOutput, 0, sizeof(struct swad__getAttendanceEventsOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numEvents > 0 || soap_flag_eventsArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceEventsOutput(struct soap *soap, const struct swad__getAttendanceEventsOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getAttendanceEventsOutput); - if (soap_out_swad__getAttendanceEventsOutput(soap, tag?tag:"swad:getAttendanceEventsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getAttendanceEventsOutput * SOAP_FMAC4 soap_get_swad__getAttendanceEventsOutput(struct soap *soap, struct swad__getAttendanceEventsOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getAttendanceEventsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceEventsArray(struct soap *soap, struct swad__attendanceEventsArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceEventsArray(struct soap *soap, struct swad__attendanceEventsArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__attendanceEventsArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__attendanceEvent); - soap_serialize_swad__attendanceEvent(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceEventsArray(struct soap *soap, const char *tag, int id, const struct swad__attendanceEventsArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__attendanceEventsArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__attendanceEvent(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__attendanceEventsArray * SOAP_FMAC4 soap_in_swad__attendanceEventsArray(struct soap *soap, const char *tag, struct swad__attendanceEventsArray *a, const char *type) -{ int i, j; - struct swad__attendanceEvent *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:attendanceEvent") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__attendanceEventsArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__attendanceEventsArray, sizeof(struct swad__attendanceEventsArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__attendanceEventsArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__attendanceEvent *)soap_malloc(soap, sizeof(struct swad__attendanceEvent) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__attendanceEvent(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__attendanceEvent(soap, NULL, a->__ptr + i, "swad:attendanceEvent")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__attendanceEvent *)soap_push_block(soap, NULL, sizeof(struct swad__attendanceEvent)); - if (!p) - return NULL; - soap_default_swad__attendanceEvent(soap, p); - if (!soap_in_swad__attendanceEvent(soap, NULL, p, "swad:attendanceEvent")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__attendanceEvent *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__attendanceEventsArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__attendanceEventsArray, 0, sizeof(struct swad__attendanceEventsArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceEventsArray(struct soap *soap, const struct swad__attendanceEventsArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__attendanceEventsArray); - if (soap_out_swad__attendanceEventsArray(soap, tag?tag:"swad:attendanceEventsArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__attendanceEventsArray * SOAP_FMAC4 soap_get_swad__attendanceEventsArray(struct soap *soap, struct swad__attendanceEventsArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__attendanceEventsArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceEvent(struct soap *soap, struct swad__attendanceEvent *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->attendanceEventCode); - soap_default_int(soap, &a->hidden); - soap_default_string(soap, &a->userSurname1); - soap_default_string(soap, &a->userSurname2); - soap_default_string(soap, &a->userFirstname); - soap_default_string(soap, &a->userPhoto); - soap_default_int(soap, &a->startTime); - soap_default_int(soap, &a->endTime); - soap_default_int(soap, &a->commentsTeachersVisible); - soap_default_string(soap, &a->title); - soap_default_string(soap, &a->text); - soap_default_string(soap, &a->groups); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceEvent(struct soap *soap, const struct swad__attendanceEvent *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->userSurname1); - soap_serialize_string(soap, &a->userSurname2); - soap_serialize_string(soap, &a->userFirstname); - soap_serialize_string(soap, &a->userPhoto); - soap_serialize_string(soap, &a->title); - soap_serialize_string(soap, &a->text); - soap_serialize_string(soap, &a->groups); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceEvent(struct soap *soap, const char *tag, int id, const struct swad__attendanceEvent *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__attendanceEvent), type)) - return soap->error; - if (soap_out_int(soap, "attendanceEventCode", -1, &a->attendanceEventCode, "")) - return soap->error; - if (soap_out_int(soap, "hidden", -1, &a->hidden, "")) - return soap->error; - if (soap_out_string(soap, "userSurname1", -1, &a->userSurname1, "")) - return soap->error; - if (soap_out_string(soap, "userSurname2", -1, &a->userSurname2, "")) - return soap->error; - if (soap_out_string(soap, "userFirstname", -1, &a->userFirstname, "")) - return soap->error; - if (soap_out_string(soap, "userPhoto", -1, &a->userPhoto, "")) - return soap->error; - if (soap_out_int(soap, "startTime", -1, &a->startTime, "")) - return soap->error; - if (soap_out_int(soap, "endTime", -1, &a->endTime, "")) - return soap->error; - if (soap_out_int(soap, "commentsTeachersVisible", -1, &a->commentsTeachersVisible, "")) - return soap->error; - if (soap_out_string(soap, "title", -1, &a->title, "")) - return soap->error; - if (soap_out_string(soap, "text", -1, &a->text, "")) - return soap->error; - if (soap_out_string(soap, "groups", -1, &a->groups, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__attendanceEvent * SOAP_FMAC4 soap_in_swad__attendanceEvent(struct soap *soap, const char *tag, struct swad__attendanceEvent *a, const char *type) -{ - size_t soap_flag_attendanceEventCode = 1; - size_t soap_flag_hidden = 1; - size_t soap_flag_userSurname1 = 1; - size_t soap_flag_userSurname2 = 1; - size_t soap_flag_userFirstname = 1; - size_t soap_flag_userPhoto = 1; - size_t soap_flag_startTime = 1; - size_t soap_flag_endTime = 1; - size_t soap_flag_commentsTeachersVisible = 1; - size_t soap_flag_title = 1; - size_t soap_flag_text = 1; - size_t soap_flag_groups = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__attendanceEvent *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__attendanceEvent, sizeof(struct swad__attendanceEvent), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__attendanceEvent(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_attendanceEventCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "attendanceEventCode", &a->attendanceEventCode, "xsd:int")) - { soap_flag_attendanceEventCode--; - continue; - } - if (soap_flag_hidden && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "hidden", &a->hidden, "xsd:int")) - { soap_flag_hidden--; - continue; - } - if (soap_flag_userSurname1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname1", &a->userSurname1, "xsd:string")) - { soap_flag_userSurname1--; - continue; - } - if (soap_flag_userSurname2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname2", &a->userSurname2, "xsd:string")) - { soap_flag_userSurname2--; - continue; - } - if (soap_flag_userFirstname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userFirstname", &a->userFirstname, "xsd:string")) - { soap_flag_userFirstname--; - continue; - } - if (soap_flag_userPhoto && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPhoto", &a->userPhoto, "xsd:string")) - { soap_flag_userPhoto--; - continue; - } - if (soap_flag_startTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "startTime", &a->startTime, "xsd:int")) - { soap_flag_startTime--; - continue; - } - if (soap_flag_endTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "endTime", &a->endTime, "xsd:int")) - { soap_flag_endTime--; - continue; - } - if (soap_flag_commentsTeachersVisible && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "commentsTeachersVisible", &a->commentsTeachersVisible, "xsd:int")) - { soap_flag_commentsTeachersVisible--; - continue; - } - if (soap_flag_title && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "title", &a->title, "xsd:string")) - { soap_flag_title--; - continue; - } - if (soap_flag_text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "text", &a->text, "xsd:string")) - { soap_flag_text--; - continue; - } - if (soap_flag_groups && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "groups", &a->groups, "xsd:string")) - { soap_flag_groups--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__attendanceEvent *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__attendanceEvent, 0, sizeof(struct swad__attendanceEvent), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_attendanceEventCode > 0 || soap_flag_hidden > 0 || soap_flag_startTime > 0 || soap_flag_endTime > 0 || soap_flag_commentsTeachersVisible > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceEvent(struct soap *soap, const struct swad__attendanceEvent *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__attendanceEvent); - if (soap_out_swad__attendanceEvent(soap, tag?tag:"swad:attendanceEvent", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__attendanceEvent * SOAP_FMAC4 soap_get_swad__attendanceEvent(struct soap *soap, struct swad__attendanceEvent *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__attendanceEvent(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getUsersOutput(struct soap *soap, struct swad__getUsersOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numUsers); - soap_default_swad__usersArray(soap, &a->usersArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getUsersOutput(struct soap *soap, const struct swad__getUsersOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__usersArray(soap, &a->usersArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getUsersOutput(struct soap *soap, const char *tag, int id, const struct swad__getUsersOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getUsersOutput), type)) - return soap->error; - if (soap_out_int(soap, "numUsers", -1, &a->numUsers, "")) - return soap->error; - if (soap_out_swad__usersArray(soap, "usersArray", -1, &a->usersArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getUsersOutput * SOAP_FMAC4 soap_in_swad__getUsersOutput(struct soap *soap, const char *tag, struct swad__getUsersOutput *a, const char *type) -{ - size_t soap_flag_numUsers = 1; - size_t soap_flag_usersArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getUsersOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getUsersOutput, sizeof(struct swad__getUsersOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getUsersOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numUsers && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numUsers", &a->numUsers, "xsd:int")) - { soap_flag_numUsers--; - continue; - } - if (soap_flag_usersArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__usersArray(soap, "usersArray", &a->usersArray, "swad:usersArray")) - { soap_flag_usersArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getUsersOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getUsersOutput, 0, sizeof(struct swad__getUsersOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numUsers > 0 || soap_flag_usersArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getUsersOutput(struct soap *soap, const struct swad__getUsersOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getUsersOutput); - if (soap_out_swad__getUsersOutput(soap, tag?tag:"swad:getUsersOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getUsersOutput * SOAP_FMAC4 soap_get_swad__getUsersOutput(struct soap *soap, struct swad__getUsersOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getUsersOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__usersArray(struct soap *soap, struct swad__usersArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__usersArray(struct soap *soap, struct swad__usersArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__usersArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__user); - soap_serialize_swad__user(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__usersArray(struct soap *soap, const char *tag, int id, const struct swad__usersArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__usersArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__user(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__usersArray * SOAP_FMAC4 soap_in_swad__usersArray(struct soap *soap, const char *tag, struct swad__usersArray *a, const char *type) -{ int i, j; - struct swad__user *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:user") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__usersArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__usersArray, sizeof(struct swad__usersArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__usersArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__user *)soap_malloc(soap, sizeof(struct swad__user) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__user(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__user(soap, NULL, a->__ptr + i, "swad:user")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__user *)soap_push_block(soap, NULL, sizeof(struct swad__user)); - if (!p) - return NULL; - soap_default_swad__user(soap, p); - if (!soap_in_swad__user(soap, NULL, p, "swad:user")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__user *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__usersArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__usersArray, 0, sizeof(struct swad__usersArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__usersArray(struct soap *soap, const struct swad__usersArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__usersArray); - if (soap_out_swad__usersArray(soap, tag?tag:"swad:usersArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__usersArray * SOAP_FMAC4 soap_get_swad__usersArray(struct soap *soap, struct swad__usersArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__usersArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__user(struct soap *soap, struct swad__user *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->userCode); - soap_default_string(soap, &a->userNickname); - soap_default_string(soap, &a->userID); - soap_default_string(soap, &a->userSurname1); - soap_default_string(soap, &a->userSurname2); - soap_default_string(soap, &a->userFirstname); - soap_default_string(soap, &a->userPhoto); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__user(struct soap *soap, const struct swad__user *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->userNickname); - soap_serialize_string(soap, &a->userID); - soap_serialize_string(soap, &a->userSurname1); - soap_serialize_string(soap, &a->userSurname2); - soap_serialize_string(soap, &a->userFirstname); - soap_serialize_string(soap, &a->userPhoto); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__user(struct soap *soap, const char *tag, int id, const struct swad__user *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__user), type)) - return soap->error; - if (soap_out_int(soap, "userCode", -1, &a->userCode, "")) - return soap->error; - if (soap_out_string(soap, "userNickname", -1, &a->userNickname, "")) - return soap->error; - if (soap_out_string(soap, "userID", -1, &a->userID, "")) - return soap->error; - if (soap_out_string(soap, "userSurname1", -1, &a->userSurname1, "")) - return soap->error; - if (soap_out_string(soap, "userSurname2", -1, &a->userSurname2, "")) - return soap->error; - if (soap_out_string(soap, "userFirstname", -1, &a->userFirstname, "")) - return soap->error; - if (soap_out_string(soap, "userPhoto", -1, &a->userPhoto, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__user * SOAP_FMAC4 soap_in_swad__user(struct soap *soap, const char *tag, struct swad__user *a, const char *type) -{ - size_t soap_flag_userCode = 1; - size_t soap_flag_userNickname = 1; - size_t soap_flag_userID = 1; - size_t soap_flag_userSurname1 = 1; - size_t soap_flag_userSurname2 = 1; - size_t soap_flag_userFirstname = 1; - size_t soap_flag_userPhoto = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__user *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__user, sizeof(struct swad__user), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__user(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userCode", &a->userCode, "xsd:int")) - { soap_flag_userCode--; - continue; - } - if (soap_flag_userNickname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userNickname", &a->userNickname, "xsd:string")) - { soap_flag_userNickname--; - continue; - } - if (soap_flag_userID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userID", &a->userID, "xsd:string")) - { soap_flag_userID--; - continue; - } - if (soap_flag_userSurname1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname1", &a->userSurname1, "xsd:string")) - { soap_flag_userSurname1--; - continue; - } - if (soap_flag_userSurname2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname2", &a->userSurname2, "xsd:string")) - { soap_flag_userSurname2--; - continue; - } - if (soap_flag_userFirstname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userFirstname", &a->userFirstname, "xsd:string")) - { soap_flag_userFirstname--; - continue; - } - if (soap_flag_userPhoto && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPhoto", &a->userPhoto, "xsd:string")) - { soap_flag_userPhoto--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__user *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__user, 0, sizeof(struct swad__user), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_userCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__user(struct soap *soap, const struct swad__user *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__user); - if (soap_out_swad__user(soap, tag?tag:"swad:user", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__user * SOAP_FMAC4 soap_get_swad__user(struct soap *soap, struct swad__user *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__user(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTestsOutput(struct soap *soap, struct swad__getTestsOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_swad__tagsArray(soap, &a->tagsArray); - soap_default_swad__questionsArray(soap, &a->questionsArray); - soap_default_swad__answersArray(soap, &a->answersArray); - soap_default_swad__questionTagsArray(soap, &a->questionTagsArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTestsOutput(struct soap *soap, const struct swad__getTestsOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__tagsArray(soap, &a->tagsArray); - soap_serialize_swad__questionsArray(soap, &a->questionsArray); - soap_serialize_swad__answersArray(soap, &a->answersArray); - soap_serialize_swad__questionTagsArray(soap, &a->questionTagsArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTestsOutput(struct soap *soap, const char *tag, int id, const struct swad__getTestsOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getTestsOutput), type)) - return soap->error; - if (soap_out_swad__tagsArray(soap, "tagsArray", -1, &a->tagsArray, "")) - return soap->error; - if (soap_out_swad__questionsArray(soap, "questionsArray", -1, &a->questionsArray, "")) - return soap->error; - if (soap_out_swad__answersArray(soap, "answersArray", -1, &a->answersArray, "")) - return soap->error; - if (soap_out_swad__questionTagsArray(soap, "questionTagsArray", -1, &a->questionTagsArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getTestsOutput * SOAP_FMAC4 soap_in_swad__getTestsOutput(struct soap *soap, const char *tag, struct swad__getTestsOutput *a, const char *type) -{ - size_t soap_flag_tagsArray = 1; - size_t soap_flag_questionsArray = 1; - size_t soap_flag_answersArray = 1; - size_t soap_flag_questionTagsArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getTestsOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getTestsOutput, sizeof(struct swad__getTestsOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getTestsOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_tagsArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__tagsArray(soap, "tagsArray", &a->tagsArray, "swad:tagsArray")) - { soap_flag_tagsArray--; - continue; - } - if (soap_flag_questionsArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__questionsArray(soap, "questionsArray", &a->questionsArray, "swad:questionsArray")) - { soap_flag_questionsArray--; - continue; - } - if (soap_flag_answersArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__answersArray(soap, "answersArray", &a->answersArray, "swad:answersArray")) - { soap_flag_answersArray--; - continue; - } - if (soap_flag_questionTagsArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__questionTagsArray(soap, "questionTagsArray", &a->questionTagsArray, "swad:questionTagsArray")) - { soap_flag_questionTagsArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getTestsOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getTestsOutput, 0, sizeof(struct swad__getTestsOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_tagsArray > 0 || soap_flag_questionsArray > 0 || soap_flag_answersArray > 0 || soap_flag_questionTagsArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTestsOutput(struct soap *soap, const struct swad__getTestsOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getTestsOutput); - if (soap_out_swad__getTestsOutput(soap, tag?tag:"swad:getTestsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getTestsOutput * SOAP_FMAC4 soap_get_swad__getTestsOutput(struct soap *soap, struct swad__getTestsOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getTestsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__questionTagsArray(struct soap *soap, struct swad__questionTagsArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__questionTagsArray(struct soap *soap, struct swad__questionTagsArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__questionTagsArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__questionTag); - soap_serialize_swad__questionTag(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__questionTagsArray(struct soap *soap, const char *tag, int id, const struct swad__questionTagsArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__questionTagsArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__questionTag(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__questionTagsArray * SOAP_FMAC4 soap_in_swad__questionTagsArray(struct soap *soap, const char *tag, struct swad__questionTagsArray *a, const char *type) -{ int i, j; - struct swad__questionTag *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:questionTag") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__questionTagsArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__questionTagsArray, sizeof(struct swad__questionTagsArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__questionTagsArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__questionTag *)soap_malloc(soap, sizeof(struct swad__questionTag) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__questionTag(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__questionTag(soap, NULL, a->__ptr + i, "swad:questionTag")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__questionTag *)soap_push_block(soap, NULL, sizeof(struct swad__questionTag)); - if (!p) - return NULL; - soap_default_swad__questionTag(soap, p); - if (!soap_in_swad__questionTag(soap, NULL, p, "swad:questionTag")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__questionTag *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__questionTagsArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__questionTagsArray, 0, sizeof(struct swad__questionTagsArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__questionTagsArray(struct soap *soap, const struct swad__questionTagsArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__questionTagsArray); - if (soap_out_swad__questionTagsArray(soap, tag?tag:"swad:questionTagsArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__questionTagsArray * SOAP_FMAC4 soap_get_swad__questionTagsArray(struct soap *soap, struct swad__questionTagsArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__questionTagsArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__questionTag(struct soap *soap, struct swad__questionTag *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->questionCode); - soap_default_int(soap, &a->tagCode); - soap_default_int(soap, &a->tagIndex); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__questionTag(struct soap *soap, const struct swad__questionTag *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__questionTag(struct soap *soap, const char *tag, int id, const struct swad__questionTag *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__questionTag), type)) - return soap->error; - if (soap_out_int(soap, "questionCode", -1, &a->questionCode, "")) - return soap->error; - if (soap_out_int(soap, "tagCode", -1, &a->tagCode, "")) - return soap->error; - if (soap_out_int(soap, "tagIndex", -1, &a->tagIndex, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__questionTag * SOAP_FMAC4 soap_in_swad__questionTag(struct soap *soap, const char *tag, struct swad__questionTag *a, const char *type) -{ - size_t soap_flag_questionCode = 1; - size_t soap_flag_tagCode = 1; - size_t soap_flag_tagIndex = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__questionTag *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__questionTag, sizeof(struct swad__questionTag), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__questionTag(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_questionCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "questionCode", &a->questionCode, "xsd:int")) - { soap_flag_questionCode--; - continue; - } - if (soap_flag_tagCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "tagCode", &a->tagCode, "xsd:int")) - { soap_flag_tagCode--; - continue; - } - if (soap_flag_tagIndex && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "tagIndex", &a->tagIndex, "xsd:int")) - { soap_flag_tagIndex--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__questionTag *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__questionTag, 0, sizeof(struct swad__questionTag), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_questionCode > 0 || soap_flag_tagCode > 0 || soap_flag_tagIndex > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__questionTag(struct soap *soap, const struct swad__questionTag *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__questionTag); - if (soap_out_swad__questionTag(soap, tag?tag:"swad:questionTag", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__questionTag * SOAP_FMAC4 soap_get_swad__questionTag(struct soap *soap, struct swad__questionTag *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__questionTag(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__answersArray(struct soap *soap, struct swad__answersArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__answersArray(struct soap *soap, struct swad__answersArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__answersArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__answer); - soap_serialize_swad__answer(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__answersArray(struct soap *soap, const char *tag, int id, const struct swad__answersArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__answersArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__answer(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__answersArray * SOAP_FMAC4 soap_in_swad__answersArray(struct soap *soap, const char *tag, struct swad__answersArray *a, const char *type) -{ int i, j; - struct swad__answer *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:answer") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__answersArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__answersArray, sizeof(struct swad__answersArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__answersArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__answer *)soap_malloc(soap, sizeof(struct swad__answer) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__answer(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__answer(soap, NULL, a->__ptr + i, "swad:answer")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__answer *)soap_push_block(soap, NULL, sizeof(struct swad__answer)); - if (!p) - return NULL; - soap_default_swad__answer(soap, p); - if (!soap_in_swad__answer(soap, NULL, p, "swad:answer")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__answer *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__answersArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__answersArray, 0, sizeof(struct swad__answersArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__answersArray(struct soap *soap, const struct swad__answersArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__answersArray); - if (soap_out_swad__answersArray(soap, tag?tag:"swad:answersArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__answersArray * SOAP_FMAC4 soap_get_swad__answersArray(struct soap *soap, struct swad__answersArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__answersArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__answer(struct soap *soap, struct swad__answer *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->questionCode); - soap_default_int(soap, &a->answerIndex); - soap_default_int(soap, &a->correct); - soap_default_string(soap, &a->answerText); - soap_default_string(soap, &a->answerFeedback); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__answer(struct soap *soap, const struct swad__answer *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->answerText); - soap_serialize_string(soap, &a->answerFeedback); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__answer(struct soap *soap, const char *tag, int id, const struct swad__answer *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__answer), type)) - return soap->error; - if (soap_out_int(soap, "questionCode", -1, &a->questionCode, "")) - return soap->error; - if (soap_out_int(soap, "answerIndex", -1, &a->answerIndex, "")) - return soap->error; - if (soap_out_int(soap, "correct", -1, &a->correct, "")) - return soap->error; - if (soap_out_string(soap, "answerText", -1, &a->answerText, "")) - return soap->error; - if (soap_out_string(soap, "answerFeedback", -1, &a->answerFeedback, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__answer * SOAP_FMAC4 soap_in_swad__answer(struct soap *soap, const char *tag, struct swad__answer *a, const char *type) -{ - size_t soap_flag_questionCode = 1; - size_t soap_flag_answerIndex = 1; - size_t soap_flag_correct = 1; - size_t soap_flag_answerText = 1; - size_t soap_flag_answerFeedback = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__answer *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__answer, sizeof(struct swad__answer), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__answer(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_questionCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "questionCode", &a->questionCode, "xsd:int")) - { soap_flag_questionCode--; - continue; - } - if (soap_flag_answerIndex && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "answerIndex", &a->answerIndex, "xsd:int")) - { soap_flag_answerIndex--; - continue; - } - if (soap_flag_correct && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "correct", &a->correct, "xsd:int")) - { soap_flag_correct--; - continue; - } - if (soap_flag_answerText && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "answerText", &a->answerText, "xsd:string")) - { soap_flag_answerText--; - continue; - } - if (soap_flag_answerFeedback && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "answerFeedback", &a->answerFeedback, "xsd:string")) - { soap_flag_answerFeedback--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__answer *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__answer, 0, sizeof(struct swad__answer), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_questionCode > 0 || soap_flag_answerIndex > 0 || soap_flag_correct > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__answer(struct soap *soap, const struct swad__answer *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__answer); - if (soap_out_swad__answer(soap, tag?tag:"swad:answer", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__answer * SOAP_FMAC4 soap_get_swad__answer(struct soap *soap, struct swad__answer *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__answer(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__questionsArray(struct soap *soap, struct swad__questionsArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__questionsArray(struct soap *soap, struct swad__questionsArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__questionsArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__question); - soap_serialize_swad__question(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__questionsArray(struct soap *soap, const char *tag, int id, const struct swad__questionsArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__questionsArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__question(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__questionsArray * SOAP_FMAC4 soap_in_swad__questionsArray(struct soap *soap, const char *tag, struct swad__questionsArray *a, const char *type) -{ int i, j; - struct swad__question *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:question") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__questionsArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__questionsArray, sizeof(struct swad__questionsArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__questionsArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__question *)soap_malloc(soap, sizeof(struct swad__question) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__question(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__question(soap, NULL, a->__ptr + i, "swad:question")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__question *)soap_push_block(soap, NULL, sizeof(struct swad__question)); - if (!p) - return NULL; - soap_default_swad__question(soap, p); - if (!soap_in_swad__question(soap, NULL, p, "swad:question")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__question *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__questionsArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__questionsArray, 0, sizeof(struct swad__questionsArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__questionsArray(struct soap *soap, const struct swad__questionsArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__questionsArray); - if (soap_out_swad__questionsArray(soap, tag?tag:"swad:questionsArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__questionsArray * SOAP_FMAC4 soap_get_swad__questionsArray(struct soap *soap, struct swad__questionsArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__questionsArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__question(struct soap *soap, struct swad__question *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->questionCode); - soap_default_string(soap, &a->answerType); - soap_default_int(soap, &a->shuffle); - soap_default_string(soap, &a->stem); - soap_default_string(soap, &a->feedback); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__question(struct soap *soap, const struct swad__question *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->answerType); - soap_serialize_string(soap, &a->stem); - soap_serialize_string(soap, &a->feedback); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__question(struct soap *soap, const char *tag, int id, const struct swad__question *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__question), type)) - return soap->error; - if (soap_out_int(soap, "questionCode", -1, &a->questionCode, "")) - return soap->error; - if (soap_out_string(soap, "answerType", -1, &a->answerType, "")) - return soap->error; - if (soap_out_int(soap, "shuffle", -1, &a->shuffle, "")) - return soap->error; - if (soap_out_string(soap, "stem", -1, &a->stem, "")) - return soap->error; - if (soap_out_string(soap, "feedback", -1, &a->feedback, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__question * SOAP_FMAC4 soap_in_swad__question(struct soap *soap, const char *tag, struct swad__question *a, const char *type) -{ - size_t soap_flag_questionCode = 1; - size_t soap_flag_answerType = 1; - size_t soap_flag_shuffle = 1; - size_t soap_flag_stem = 1; - size_t soap_flag_feedback = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__question *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__question, sizeof(struct swad__question), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__question(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_questionCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "questionCode", &a->questionCode, "xsd:int")) - { soap_flag_questionCode--; - continue; - } - if (soap_flag_answerType && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "answerType", &a->answerType, "xsd:string")) - { soap_flag_answerType--; - continue; - } - if (soap_flag_shuffle && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "shuffle", &a->shuffle, "xsd:int")) - { soap_flag_shuffle--; - continue; - } - if (soap_flag_stem && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "stem", &a->stem, "xsd:string")) - { soap_flag_stem--; - continue; - } - if (soap_flag_feedback && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "feedback", &a->feedback, "xsd:string")) - { soap_flag_feedback--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__question *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__question, 0, sizeof(struct swad__question), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_questionCode > 0 || soap_flag_shuffle > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__question(struct soap *soap, const struct swad__question *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__question); - if (soap_out_swad__question(soap, tag?tag:"swad:question", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__question * SOAP_FMAC4 soap_get_swad__question(struct soap *soap, struct swad__question *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__question(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__tagsArray(struct soap *soap, struct swad__tagsArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__tagsArray(struct soap *soap, struct swad__tagsArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__tagsArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__tag); - soap_serialize_swad__tag(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__tagsArray(struct soap *soap, const char *tag, int id, const struct swad__tagsArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__tagsArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__tag(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__tagsArray * SOAP_FMAC4 soap_in_swad__tagsArray(struct soap *soap, const char *tag, struct swad__tagsArray *a, const char *type) -{ int i, j; - struct swad__tag *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:tag") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__tagsArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__tagsArray, sizeof(struct swad__tagsArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__tagsArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__tag *)soap_malloc(soap, sizeof(struct swad__tag) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__tag(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__tag(soap, NULL, a->__ptr + i, "swad:tag")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__tag *)soap_push_block(soap, NULL, sizeof(struct swad__tag)); - if (!p) - return NULL; - soap_default_swad__tag(soap, p); - if (!soap_in_swad__tag(soap, NULL, p, "swad:tag")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__tag *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__tagsArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__tagsArray, 0, sizeof(struct swad__tagsArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__tagsArray(struct soap *soap, const struct swad__tagsArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__tagsArray); - if (soap_out_swad__tagsArray(soap, tag?tag:"swad:tagsArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__tagsArray * SOAP_FMAC4 soap_get_swad__tagsArray(struct soap *soap, struct swad__tagsArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__tagsArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__tag(struct soap *soap, struct swad__tag *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->tagCode); - soap_default_string(soap, &a->tagText); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__tag(struct soap *soap, const struct swad__tag *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->tagText); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__tag(struct soap *soap, const char *tag, int id, const struct swad__tag *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__tag), type)) - return soap->error; - if (soap_out_int(soap, "tagCode", -1, &a->tagCode, "")) - return soap->error; - if (soap_out_string(soap, "tagText", -1, &a->tagText, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__tag * SOAP_FMAC4 soap_in_swad__tag(struct soap *soap, const char *tag, struct swad__tag *a, const char *type) -{ - size_t soap_flag_tagCode = 1; - size_t soap_flag_tagText = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__tag *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__tag, sizeof(struct swad__tag), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__tag(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_tagCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "tagCode", &a->tagCode, "xsd:int")) - { soap_flag_tagCode--; - continue; - } - if (soap_flag_tagText && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "tagText", &a->tagText, "xsd:string")) - { soap_flag_tagText--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__tag *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__tag, 0, sizeof(struct swad__tag), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_tagCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__tag(struct soap *soap, const struct swad__tag *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__tag); - if (soap_out_swad__tag(soap, tag?tag:"swad:tag", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__tag * SOAP_FMAC4 soap_get_swad__tag(struct soap *soap, struct swad__tag *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__tag(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTestConfigOutput(struct soap *soap, struct swad__getTestConfigOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->pluggable); - soap_default_int(soap, &a->numQuestions); - soap_default_int(soap, &a->minQuestions); - soap_default_int(soap, &a->defQuestions); - soap_default_int(soap, &a->maxQuestions); - soap_default_string(soap, &a->feedback); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTestConfigOutput(struct soap *soap, const struct swad__getTestConfigOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->feedback); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTestConfigOutput(struct soap *soap, const char *tag, int id, const struct swad__getTestConfigOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getTestConfigOutput), type)) - return soap->error; - if (soap_out_int(soap, "pluggable", -1, &a->pluggable, "")) - return soap->error; - if (soap_out_int(soap, "numQuestions", -1, &a->numQuestions, "")) - return soap->error; - if (soap_out_int(soap, "minQuestions", -1, &a->minQuestions, "")) - return soap->error; - if (soap_out_int(soap, "defQuestions", -1, &a->defQuestions, "")) - return soap->error; - if (soap_out_int(soap, "maxQuestions", -1, &a->maxQuestions, "")) - return soap->error; - if (soap_out_string(soap, "feedback", -1, &a->feedback, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getTestConfigOutput * SOAP_FMAC4 soap_in_swad__getTestConfigOutput(struct soap *soap, const char *tag, struct swad__getTestConfigOutput *a, const char *type) -{ - size_t soap_flag_pluggable = 1; - size_t soap_flag_numQuestions = 1; - size_t soap_flag_minQuestions = 1; - size_t soap_flag_defQuestions = 1; - size_t soap_flag_maxQuestions = 1; - size_t soap_flag_feedback = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getTestConfigOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getTestConfigOutput, sizeof(struct swad__getTestConfigOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getTestConfigOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_pluggable && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "pluggable", &a->pluggable, "xsd:int")) - { soap_flag_pluggable--; - continue; - } - if (soap_flag_numQuestions && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numQuestions", &a->numQuestions, "xsd:int")) - { soap_flag_numQuestions--; - continue; - } - if (soap_flag_minQuestions && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "minQuestions", &a->minQuestions, "xsd:int")) - { soap_flag_minQuestions--; - continue; - } - if (soap_flag_defQuestions && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "defQuestions", &a->defQuestions, "xsd:int")) - { soap_flag_defQuestions--; - continue; - } - if (soap_flag_maxQuestions && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "maxQuestions", &a->maxQuestions, "xsd:int")) - { soap_flag_maxQuestions--; - continue; - } - if (soap_flag_feedback && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "feedback", &a->feedback, "xsd:string")) - { soap_flag_feedback--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getTestConfigOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getTestConfigOutput, 0, sizeof(struct swad__getTestConfigOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_pluggable > 0 || soap_flag_numQuestions > 0 || soap_flag_minQuestions > 0 || soap_flag_defQuestions > 0 || soap_flag_maxQuestions > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTestConfigOutput(struct soap *soap, const struct swad__getTestConfigOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getTestConfigOutput); - if (soap_out_swad__getTestConfigOutput(soap, tag?tag:"swad:getTestConfigOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getTestConfigOutput * SOAP_FMAC4 soap_get_swad__getTestConfigOutput(struct soap *soap, struct swad__getTestConfigOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getTestConfigOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__markNotificationsAsReadOutput(struct soap *soap, struct swad__markNotificationsAsReadOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numNotifications); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__markNotificationsAsReadOutput(struct soap *soap, const struct swad__markNotificationsAsReadOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__markNotificationsAsReadOutput(struct soap *soap, const char *tag, int id, const struct swad__markNotificationsAsReadOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__markNotificationsAsReadOutput), type)) - return soap->error; - if (soap_out_int(soap, "numNotifications", -1, &a->numNotifications, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput * SOAP_FMAC4 soap_in_swad__markNotificationsAsReadOutput(struct soap *soap, const char *tag, struct swad__markNotificationsAsReadOutput *a, const char *type) -{ - size_t soap_flag_numNotifications = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__markNotificationsAsReadOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__markNotificationsAsReadOutput, sizeof(struct swad__markNotificationsAsReadOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__markNotificationsAsReadOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numNotifications && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numNotifications", &a->numNotifications, "xsd:int")) - { soap_flag_numNotifications--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__markNotificationsAsReadOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__markNotificationsAsReadOutput, 0, sizeof(struct swad__markNotificationsAsReadOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numNotifications > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__markNotificationsAsReadOutput(struct soap *soap, const struct swad__markNotificationsAsReadOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__markNotificationsAsReadOutput); - if (soap_out_swad__markNotificationsAsReadOutput(soap, tag?tag:"swad:markNotificationsAsReadOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput * SOAP_FMAC4 soap_get_swad__markNotificationsAsReadOutput(struct soap *soap, struct swad__markNotificationsAsReadOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__markNotificationsAsReadOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNotificationsOutput(struct soap *soap, struct swad__getNotificationsOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numNotifications); - soap_default_swad__notificationsArray(soap, &a->notificationsArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNotificationsOutput(struct soap *soap, const struct swad__getNotificationsOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__notificationsArray(soap, &a->notificationsArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNotificationsOutput(struct soap *soap, const char *tag, int id, const struct swad__getNotificationsOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getNotificationsOutput), type)) - return soap->error; - if (soap_out_int(soap, "numNotifications", -1, &a->numNotifications, "")) - return soap->error; - if (soap_out_swad__notificationsArray(soap, "notificationsArray", -1, &a->notificationsArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getNotificationsOutput * SOAP_FMAC4 soap_in_swad__getNotificationsOutput(struct soap *soap, const char *tag, struct swad__getNotificationsOutput *a, const char *type) -{ - size_t soap_flag_numNotifications = 1; - size_t soap_flag_notificationsArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getNotificationsOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getNotificationsOutput, sizeof(struct swad__getNotificationsOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getNotificationsOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numNotifications && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numNotifications", &a->numNotifications, "xsd:int")) - { soap_flag_numNotifications--; - continue; - } - if (soap_flag_notificationsArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__notificationsArray(soap, "notificationsArray", &a->notificationsArray, "swad:notificationsArray")) - { soap_flag_notificationsArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getNotificationsOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getNotificationsOutput, 0, sizeof(struct swad__getNotificationsOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numNotifications > 0 || soap_flag_notificationsArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNotificationsOutput(struct soap *soap, const struct swad__getNotificationsOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getNotificationsOutput); - if (soap_out_swad__getNotificationsOutput(soap, tag?tag:"swad:getNotificationsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getNotificationsOutput * SOAP_FMAC4 soap_get_swad__getNotificationsOutput(struct soap *soap, struct swad__getNotificationsOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getNotificationsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__notificationsArray(struct soap *soap, struct swad__notificationsArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__notificationsArray(struct soap *soap, struct swad__notificationsArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__notificationsArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__notification); - soap_serialize_swad__notification(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__notificationsArray(struct soap *soap, const char *tag, int id, const struct swad__notificationsArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__notificationsArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__notification(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__notificationsArray * SOAP_FMAC4 soap_in_swad__notificationsArray(struct soap *soap, const char *tag, struct swad__notificationsArray *a, const char *type) -{ int i, j; - struct swad__notification *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:notification") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__notificationsArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__notificationsArray, sizeof(struct swad__notificationsArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__notificationsArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__notification *)soap_malloc(soap, sizeof(struct swad__notification) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__notification(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__notification(soap, NULL, a->__ptr + i, "swad:notification")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__notification *)soap_push_block(soap, NULL, sizeof(struct swad__notification)); - if (!p) - return NULL; - soap_default_swad__notification(soap, p); - if (!soap_in_swad__notification(soap, NULL, p, "swad:notification")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__notification *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__notificationsArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__notificationsArray, 0, sizeof(struct swad__notificationsArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__notificationsArray(struct soap *soap, const struct swad__notificationsArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__notificationsArray); - if (soap_out_swad__notificationsArray(soap, tag?tag:"swad:notificationsArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__notificationsArray * SOAP_FMAC4 soap_get_swad__notificationsArray(struct soap *soap, struct swad__notificationsArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__notificationsArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__notification(struct soap *soap, struct swad__notification *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->notifCode); - soap_default_string(soap, &a->eventType); - soap_default_int(soap, &a->eventCode); - soap_default_long(soap, &a->eventTime); - soap_default_string(soap, &a->userNickname); - soap_default_string(soap, &a->userSurname1); - soap_default_string(soap, &a->userSurname2); - soap_default_string(soap, &a->userFirstname); - soap_default_string(soap, &a->userPhoto); - soap_default_string(soap, &a->location); - soap_default_int(soap, &a->status); - soap_default_string(soap, &a->summary); - soap_default_string(soap, &a->content); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__notification(struct soap *soap, const struct swad__notification *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->eventType); - soap_serialize_string(soap, &a->userNickname); - soap_serialize_string(soap, &a->userSurname1); - soap_serialize_string(soap, &a->userSurname2); - soap_serialize_string(soap, &a->userFirstname); - soap_serialize_string(soap, &a->userPhoto); - soap_serialize_string(soap, &a->location); - soap_serialize_string(soap, &a->summary); - soap_serialize_string(soap, &a->content); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__notification(struct soap *soap, const char *tag, int id, const struct swad__notification *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__notification), type)) - return soap->error; - if (soap_out_int(soap, "notifCode", -1, &a->notifCode, "")) - return soap->error; - if (soap_out_string(soap, "eventType", -1, &a->eventType, "")) - return soap->error; - if (soap_out_int(soap, "eventCode", -1, &a->eventCode, "")) - return soap->error; - if (soap_out_long(soap, "eventTime", -1, &a->eventTime, "")) - return soap->error; - if (soap_out_string(soap, "userNickname", -1, &a->userNickname, "")) - return soap->error; - if (soap_out_string(soap, "userSurname1", -1, &a->userSurname1, "")) - return soap->error; - if (soap_out_string(soap, "userSurname2", -1, &a->userSurname2, "")) - return soap->error; - if (soap_out_string(soap, "userFirstname", -1, &a->userFirstname, "")) - return soap->error; - if (soap_out_string(soap, "userPhoto", -1, &a->userPhoto, "")) - return soap->error; - if (soap_out_string(soap, "location", -1, &a->location, "")) - return soap->error; - if (soap_out_int(soap, "status", -1, &a->status, "")) - return soap->error; - if (soap_out_string(soap, "summary", -1, &a->summary, "")) - return soap->error; - if (soap_out_string(soap, "content", -1, &a->content, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__notification * SOAP_FMAC4 soap_in_swad__notification(struct soap *soap, const char *tag, struct swad__notification *a, const char *type) -{ - size_t soap_flag_notifCode = 1; - size_t soap_flag_eventType = 1; - size_t soap_flag_eventCode = 1; - size_t soap_flag_eventTime = 1; - size_t soap_flag_userNickname = 1; - size_t soap_flag_userSurname1 = 1; - size_t soap_flag_userSurname2 = 1; - size_t soap_flag_userFirstname = 1; - size_t soap_flag_userPhoto = 1; - size_t soap_flag_location = 1; - size_t soap_flag_status = 1; - size_t soap_flag_summary = 1; - size_t soap_flag_content = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__notification *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__notification, sizeof(struct swad__notification), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__notification(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_notifCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "notifCode", &a->notifCode, "xsd:int")) - { soap_flag_notifCode--; - continue; - } - if (soap_flag_eventType && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "eventType", &a->eventType, "xsd:string")) - { soap_flag_eventType--; - continue; - } - if (soap_flag_eventCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "eventCode", &a->eventCode, "xsd:int")) - { soap_flag_eventCode--; - continue; - } - if (soap_flag_eventTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_long(soap, "eventTime", &a->eventTime, "xsd:long")) - { soap_flag_eventTime--; - continue; - } - if (soap_flag_userNickname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userNickname", &a->userNickname, "xsd:string")) - { soap_flag_userNickname--; - continue; - } - if (soap_flag_userSurname1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname1", &a->userSurname1, "xsd:string")) - { soap_flag_userSurname1--; - continue; - } - if (soap_flag_userSurname2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname2", &a->userSurname2, "xsd:string")) - { soap_flag_userSurname2--; - continue; - } - if (soap_flag_userFirstname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userFirstname", &a->userFirstname, "xsd:string")) - { soap_flag_userFirstname--; - continue; - } - if (soap_flag_userPhoto && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPhoto", &a->userPhoto, "xsd:string")) - { soap_flag_userPhoto--; - continue; - } - if (soap_flag_location && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "location", &a->location, "xsd:string")) - { soap_flag_location--; - continue; - } - if (soap_flag_status && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "status", &a->status, "xsd:int")) - { soap_flag_status--; - continue; - } - if (soap_flag_summary && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "summary", &a->summary, "xsd:string")) - { soap_flag_summary--; - continue; - } - if (soap_flag_content && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "content", &a->content, "xsd:string")) - { soap_flag_content--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__notification *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__notification, 0, sizeof(struct swad__notification), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_notifCode > 0 || soap_flag_eventCode > 0 || soap_flag_eventTime > 0 || soap_flag_status > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__notification(struct soap *soap, const struct swad__notification *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__notification); - if (soap_out_swad__notification(soap, tag?tag:"swad:notification", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__notification * SOAP_FMAC4 soap_get_swad__notification(struct soap *soap, struct swad__notification *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__notification(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMyGroupsOutput(struct soap *soap, struct swad__sendMyGroupsOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->success); - soap_default_int(soap, &a->numGroups); - soap_default_swad__groupsArray(soap, &a->groupsArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMyGroupsOutput(struct soap *soap, const struct swad__sendMyGroupsOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__groupsArray(soap, &a->groupsArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMyGroupsOutput(struct soap *soap, const char *tag, int id, const struct swad__sendMyGroupsOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__sendMyGroupsOutput), type)) - return soap->error; - if (soap_out_int(soap, "success", -1, &a->success, "")) - return soap->error; - if (soap_out_int(soap, "numGroups", -1, &a->numGroups, "")) - return soap->error; - if (soap_out_swad__groupsArray(soap, "groupsArray", -1, &a->groupsArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__sendMyGroupsOutput * SOAP_FMAC4 soap_in_swad__sendMyGroupsOutput(struct soap *soap, const char *tag, struct swad__sendMyGroupsOutput *a, const char *type) -{ - size_t soap_flag_success = 1; - size_t soap_flag_numGroups = 1; - size_t soap_flag_groupsArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__sendMyGroupsOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__sendMyGroupsOutput, sizeof(struct swad__sendMyGroupsOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__sendMyGroupsOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_success && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "success", &a->success, "xsd:int")) - { soap_flag_success--; - continue; - } - if (soap_flag_numGroups && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numGroups", &a->numGroups, "xsd:int")) - { soap_flag_numGroups--; - continue; - } - if (soap_flag_groupsArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__groupsArray(soap, "groupsArray", &a->groupsArray, "swad:groupsArray")) - { soap_flag_groupsArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__sendMyGroupsOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__sendMyGroupsOutput, 0, sizeof(struct swad__sendMyGroupsOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_success > 0 || soap_flag_numGroups > 0 || soap_flag_groupsArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMyGroupsOutput(struct soap *soap, const struct swad__sendMyGroupsOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__sendMyGroupsOutput); - if (soap_out_swad__sendMyGroupsOutput(soap, tag?tag:"swad:sendMyGroupsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendMyGroupsOutput * SOAP_FMAC4 soap_get_swad__sendMyGroupsOutput(struct soap *soap, struct swad__sendMyGroupsOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__sendMyGroupsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroupsOutput(struct soap *soap, struct swad__getGroupsOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numGroups); - soap_default_swad__groupsArray(soap, &a->groupsArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroupsOutput(struct soap *soap, const struct swad__getGroupsOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__groupsArray(soap, &a->groupsArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroupsOutput(struct soap *soap, const char *tag, int id, const struct swad__getGroupsOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getGroupsOutput), type)) - return soap->error; - if (soap_out_int(soap, "numGroups", -1, &a->numGroups, "")) - return soap->error; - if (soap_out_swad__groupsArray(soap, "groupsArray", -1, &a->groupsArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getGroupsOutput * SOAP_FMAC4 soap_in_swad__getGroupsOutput(struct soap *soap, const char *tag, struct swad__getGroupsOutput *a, const char *type) -{ - size_t soap_flag_numGroups = 1; - size_t soap_flag_groupsArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getGroupsOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getGroupsOutput, sizeof(struct swad__getGroupsOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getGroupsOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numGroups && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numGroups", &a->numGroups, "xsd:int")) - { soap_flag_numGroups--; - continue; - } - if (soap_flag_groupsArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__groupsArray(soap, "groupsArray", &a->groupsArray, "swad:groupsArray")) - { soap_flag_groupsArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getGroupsOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getGroupsOutput, 0, sizeof(struct swad__getGroupsOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numGroups > 0 || soap_flag_groupsArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroupsOutput(struct soap *soap, const struct swad__getGroupsOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getGroupsOutput); - if (soap_out_swad__getGroupsOutput(soap, tag?tag:"swad:getGroupsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getGroupsOutput * SOAP_FMAC4 soap_get_swad__getGroupsOutput(struct soap *soap, struct swad__getGroupsOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getGroupsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__groupsArray(struct soap *soap, struct swad__groupsArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__groupsArray(struct soap *soap, struct swad__groupsArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__groupsArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__group); - soap_serialize_swad__group(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__groupsArray(struct soap *soap, const char *tag, int id, const struct swad__groupsArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__groupsArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__group(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__groupsArray * SOAP_FMAC4 soap_in_swad__groupsArray(struct soap *soap, const char *tag, struct swad__groupsArray *a, const char *type) -{ int i, j; - struct swad__group *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:group") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__groupsArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__groupsArray, sizeof(struct swad__groupsArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__groupsArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__group *)soap_malloc(soap, sizeof(struct swad__group) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__group(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__group(soap, NULL, a->__ptr + i, "swad:group")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__group *)soap_push_block(soap, NULL, sizeof(struct swad__group)); - if (!p) - return NULL; - soap_default_swad__group(soap, p); - if (!soap_in_swad__group(soap, NULL, p, "swad:group")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__group *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__groupsArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__groupsArray, 0, sizeof(struct swad__groupsArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__groupsArray(struct soap *soap, const struct swad__groupsArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__groupsArray); - if (soap_out_swad__groupsArray(soap, tag?tag:"swad:groupsArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__groupsArray * SOAP_FMAC4 soap_get_swad__groupsArray(struct soap *soap, struct swad__groupsArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__groupsArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__group(struct soap *soap, struct swad__group *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->groupCode); - soap_default_string(soap, &a->groupName); - soap_default_int(soap, &a->groupTypeCode); - soap_default_string(soap, &a->groupTypeName); - soap_default_int(soap, &a->open); - soap_default_int(soap, &a->maxStudents); - soap_default_int(soap, &a->numStudents); - soap_default_int(soap, &a->fileZones); - soap_default_int(soap, &a->member); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__group(struct soap *soap, const struct swad__group *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->groupName); - soap_serialize_string(soap, &a->groupTypeName); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__group(struct soap *soap, const char *tag, int id, const struct swad__group *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__group), type)) - return soap->error; - if (soap_out_int(soap, "groupCode", -1, &a->groupCode, "")) - return soap->error; - if (soap_out_string(soap, "groupName", -1, &a->groupName, "")) - return soap->error; - if (soap_out_int(soap, "groupTypeCode", -1, &a->groupTypeCode, "")) - return soap->error; - if (soap_out_string(soap, "groupTypeName", -1, &a->groupTypeName, "")) - return soap->error; - if (soap_out_int(soap, "open", -1, &a->open, "")) - return soap->error; - if (soap_out_int(soap, "maxStudents", -1, &a->maxStudents, "")) - return soap->error; - if (soap_out_int(soap, "numStudents", -1, &a->numStudents, "")) - return soap->error; - if (soap_out_int(soap, "fileZones", -1, &a->fileZones, "")) - return soap->error; - if (soap_out_int(soap, "member", -1, &a->member, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__group * SOAP_FMAC4 soap_in_swad__group(struct soap *soap, const char *tag, struct swad__group *a, const char *type) -{ - size_t soap_flag_groupCode = 1; - size_t soap_flag_groupName = 1; - size_t soap_flag_groupTypeCode = 1; - size_t soap_flag_groupTypeName = 1; - size_t soap_flag_open = 1; - size_t soap_flag_maxStudents = 1; - size_t soap_flag_numStudents = 1; - size_t soap_flag_fileZones = 1; - size_t soap_flag_member = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__group *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__group, sizeof(struct swad__group), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__group(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_groupCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "groupCode", &a->groupCode, "xsd:int")) - { soap_flag_groupCode--; - continue; - } - if (soap_flag_groupName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "groupName", &a->groupName, "xsd:string")) - { soap_flag_groupName--; - continue; - } - if (soap_flag_groupTypeCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "groupTypeCode", &a->groupTypeCode, "xsd:int")) - { soap_flag_groupTypeCode--; - continue; - } - if (soap_flag_groupTypeName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "groupTypeName", &a->groupTypeName, "xsd:string")) - { soap_flag_groupTypeName--; - continue; - } - if (soap_flag_open && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "open", &a->open, "xsd:int")) - { soap_flag_open--; - continue; - } - if (soap_flag_maxStudents && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "maxStudents", &a->maxStudents, "xsd:int")) - { soap_flag_maxStudents--; - continue; - } - if (soap_flag_numStudents && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numStudents", &a->numStudents, "xsd:int")) - { soap_flag_numStudents--; - continue; - } - if (soap_flag_fileZones && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "fileZones", &a->fileZones, "xsd:int")) - { soap_flag_fileZones--; - continue; - } - if (soap_flag_member && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "member", &a->member, "xsd:int")) - { soap_flag_member--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__group *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__group, 0, sizeof(struct swad__group), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_groupCode > 0 || soap_flag_groupTypeCode > 0 || soap_flag_open > 0 || soap_flag_maxStudents > 0 || soap_flag_numStudents > 0 || soap_flag_fileZones > 0 || soap_flag_member > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__group(struct soap *soap, const struct swad__group *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__group); - if (soap_out_swad__group(soap, tag?tag:"swad:group", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__group * SOAP_FMAC4 soap_get_swad__group(struct soap *soap, struct swad__group *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__group(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroupTypesOutput(struct soap *soap, struct swad__getGroupTypesOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numGroupTypes); - soap_default_swad__groupTypesArray(soap, &a->groupTypesArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroupTypesOutput(struct soap *soap, const struct swad__getGroupTypesOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__groupTypesArray(soap, &a->groupTypesArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroupTypesOutput(struct soap *soap, const char *tag, int id, const struct swad__getGroupTypesOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getGroupTypesOutput), type)) - return soap->error; - if (soap_out_int(soap, "numGroupTypes", -1, &a->numGroupTypes, "")) - return soap->error; - if (soap_out_swad__groupTypesArray(soap, "groupTypesArray", -1, &a->groupTypesArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getGroupTypesOutput * SOAP_FMAC4 soap_in_swad__getGroupTypesOutput(struct soap *soap, const char *tag, struct swad__getGroupTypesOutput *a, const char *type) -{ - size_t soap_flag_numGroupTypes = 1; - size_t soap_flag_groupTypesArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getGroupTypesOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getGroupTypesOutput, sizeof(struct swad__getGroupTypesOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getGroupTypesOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numGroupTypes && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numGroupTypes", &a->numGroupTypes, "xsd:int")) - { soap_flag_numGroupTypes--; - continue; - } - if (soap_flag_groupTypesArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__groupTypesArray(soap, "groupTypesArray", &a->groupTypesArray, "swad:groupTypesArray")) - { soap_flag_groupTypesArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getGroupTypesOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getGroupTypesOutput, 0, sizeof(struct swad__getGroupTypesOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numGroupTypes > 0 || soap_flag_groupTypesArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroupTypesOutput(struct soap *soap, const struct swad__getGroupTypesOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getGroupTypesOutput); - if (soap_out_swad__getGroupTypesOutput(soap, tag?tag:"swad:getGroupTypesOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getGroupTypesOutput * SOAP_FMAC4 soap_get_swad__getGroupTypesOutput(struct soap *soap, struct swad__getGroupTypesOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getGroupTypesOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__groupTypesArray(struct soap *soap, struct swad__groupTypesArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__groupTypesArray(struct soap *soap, struct swad__groupTypesArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__groupTypesArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__groupType); - soap_serialize_swad__groupType(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__groupTypesArray(struct soap *soap, const char *tag, int id, const struct swad__groupTypesArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__groupTypesArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__groupType(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__groupTypesArray * SOAP_FMAC4 soap_in_swad__groupTypesArray(struct soap *soap, const char *tag, struct swad__groupTypesArray *a, const char *type) -{ int i, j; - struct swad__groupType *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:groupType") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__groupTypesArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__groupTypesArray, sizeof(struct swad__groupTypesArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__groupTypesArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__groupType *)soap_malloc(soap, sizeof(struct swad__groupType) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__groupType(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__groupType(soap, NULL, a->__ptr + i, "swad:groupType")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__groupType *)soap_push_block(soap, NULL, sizeof(struct swad__groupType)); - if (!p) - return NULL; - soap_default_swad__groupType(soap, p); - if (!soap_in_swad__groupType(soap, NULL, p, "swad:groupType")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__groupType *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__groupTypesArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__groupTypesArray, 0, sizeof(struct swad__groupTypesArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__groupTypesArray(struct soap *soap, const struct swad__groupTypesArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__groupTypesArray); - if (soap_out_swad__groupTypesArray(soap, tag?tag:"swad:groupTypesArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__groupTypesArray * SOAP_FMAC4 soap_get_swad__groupTypesArray(struct soap *soap, struct swad__groupTypesArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__groupTypesArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__groupType(struct soap *soap, struct swad__groupType *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->groupTypeCode); - soap_default_string(soap, &a->groupTypeName); - soap_default_int(soap, &a->mandatory); - soap_default_int(soap, &a->multiple); - soap_default_long(soap, &a->openTime); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__groupType(struct soap *soap, const struct swad__groupType *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->groupTypeName); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__groupType(struct soap *soap, const char *tag, int id, const struct swad__groupType *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__groupType), type)) - return soap->error; - if (soap_out_int(soap, "groupTypeCode", -1, &a->groupTypeCode, "")) - return soap->error; - if (soap_out_string(soap, "groupTypeName", -1, &a->groupTypeName, "")) - return soap->error; - if (soap_out_int(soap, "mandatory", -1, &a->mandatory, "")) - return soap->error; - if (soap_out_int(soap, "multiple", -1, &a->multiple, "")) - return soap->error; - if (soap_out_long(soap, "openTime", -1, &a->openTime, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__groupType * SOAP_FMAC4 soap_in_swad__groupType(struct soap *soap, const char *tag, struct swad__groupType *a, const char *type) -{ - size_t soap_flag_groupTypeCode = 1; - size_t soap_flag_groupTypeName = 1; - size_t soap_flag_mandatory = 1; - size_t soap_flag_multiple = 1; - size_t soap_flag_openTime = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__groupType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__groupType, sizeof(struct swad__groupType), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__groupType(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_groupTypeCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "groupTypeCode", &a->groupTypeCode, "xsd:int")) - { soap_flag_groupTypeCode--; - continue; - } - if (soap_flag_groupTypeName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "groupTypeName", &a->groupTypeName, "xsd:string")) - { soap_flag_groupTypeName--; - continue; - } - if (soap_flag_mandatory && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "mandatory", &a->mandatory, "xsd:int")) - { soap_flag_mandatory--; - continue; - } - if (soap_flag_multiple && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "multiple", &a->multiple, "xsd:int")) - { soap_flag_multiple--; - continue; - } - if (soap_flag_openTime && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_long(soap, "openTime", &a->openTime, "xsd:long")) - { soap_flag_openTime--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__groupType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__groupType, 0, sizeof(struct swad__groupType), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_groupTypeCode > 0 || soap_flag_mandatory > 0 || soap_flag_multiple > 0 || soap_flag_openTime > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__groupType(struct soap *soap, const struct swad__groupType *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__groupType); - if (soap_out_swad__groupType(soap, tag?tag:"swad:groupType", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__groupType * SOAP_FMAC4 soap_get_swad__groupType(struct soap *soap, struct swad__groupType *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__groupType(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCourseInfoOutput(struct soap *soap, struct swad__getCourseInfoOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_string(soap, &a->infoSrc); - soap_default_string(soap, &a->infoTxt); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCourseInfoOutput(struct soap *soap, const struct swad__getCourseInfoOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->infoSrc); - soap_serialize_string(soap, &a->infoTxt); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCourseInfoOutput(struct soap *soap, const char *tag, int id, const struct swad__getCourseInfoOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getCourseInfoOutput), type)) - return soap->error; - if (soap_out_string(soap, "infoSrc", -1, &a->infoSrc, "")) - return soap->error; - if (soap_out_string(soap, "infoTxt", -1, &a->infoTxt, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getCourseInfoOutput * SOAP_FMAC4 soap_in_swad__getCourseInfoOutput(struct soap *soap, const char *tag, struct swad__getCourseInfoOutput *a, const char *type) -{ - size_t soap_flag_infoSrc = 1; - size_t soap_flag_infoTxt = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getCourseInfoOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getCourseInfoOutput, sizeof(struct swad__getCourseInfoOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getCourseInfoOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_infoSrc && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "infoSrc", &a->infoSrc, "xsd:string")) - { soap_flag_infoSrc--; - continue; - } - if (soap_flag_infoTxt && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "infoTxt", &a->infoTxt, "xsd:string")) - { soap_flag_infoTxt--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getCourseInfoOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getCourseInfoOutput, 0, sizeof(struct swad__getCourseInfoOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCourseInfoOutput(struct soap *soap, const struct swad__getCourseInfoOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getCourseInfoOutput); - if (soap_out_swad__getCourseInfoOutput(soap, tag?tag:"swad:getCourseInfoOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getCourseInfoOutput * SOAP_FMAC4 soap_get_swad__getCourseInfoOutput(struct soap *soap, struct swad__getCourseInfoOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getCourseInfoOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCoursesOutput(struct soap *soap, struct swad__getCoursesOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->numCourses); - soap_default_swad__coursesArray(soap, &a->coursesArray); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCoursesOutput(struct soap *soap, const struct swad__getCoursesOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_swad__coursesArray(soap, &a->coursesArray); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCoursesOutput(struct soap *soap, const char *tag, int id, const struct swad__getCoursesOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getCoursesOutput), type)) - return soap->error; - if (soap_out_int(soap, "numCourses", -1, &a->numCourses, "")) - return soap->error; - if (soap_out_swad__coursesArray(soap, "coursesArray", -1, &a->coursesArray, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getCoursesOutput * SOAP_FMAC4 soap_in_swad__getCoursesOutput(struct soap *soap, const char *tag, struct swad__getCoursesOutput *a, const char *type) -{ - size_t soap_flag_numCourses = 1; - size_t soap_flag_coursesArray = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getCoursesOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getCoursesOutput, sizeof(struct swad__getCoursesOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getCoursesOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_numCourses && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "numCourses", &a->numCourses, "xsd:int")) - { soap_flag_numCourses--; - continue; - } - if (soap_flag_coursesArray && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_swad__coursesArray(soap, "coursesArray", &a->coursesArray, "swad:coursesArray")) - { soap_flag_coursesArray--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getCoursesOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getCoursesOutput, 0, sizeof(struct swad__getCoursesOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_numCourses > 0 || soap_flag_coursesArray > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCoursesOutput(struct soap *soap, const struct swad__getCoursesOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getCoursesOutput); - if (soap_out_swad__getCoursesOutput(soap, tag?tag:"swad:getCoursesOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getCoursesOutput * SOAP_FMAC4 soap_get_swad__getCoursesOutput(struct soap *soap, struct swad__getCoursesOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getCoursesOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__coursesArray(struct soap *soap, struct swad__coursesArray *a) -{ (void)soap; - (void)soap; /* appease -Wall -Werror */ - a->__size = 0; - a->__ptr = NULL; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__coursesArray(struct soap *soap, struct swad__coursesArray const*a) -{ -#ifndef WITH_NOIDREF - int i; - if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)(void*)&a->__ptr, 1, SOAP_TYPE_swad__coursesArray)) - for (i = 0; i < a->__size; i++) - { soap_embedded(soap, a->__ptr + i, SOAP_TYPE_swad__course); - soap_serialize_swad__course(soap, a->__ptr + i); - } -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__coursesArray(struct soap *soap, const char *tag, int id, const struct swad__coursesArray *a, const char *type) -{ - int i, n = a->__size; - id = soap_element_id(soap, tag, id, a, (struct soap_array*)(void*)&a->__ptr, 1, type, SOAP_TYPE_swad__coursesArray); - if (id < 0) - return soap->error; - if (soap_element_begin_out(soap, tag, id, type)) - return soap->error; - for (i = 0; i < n; i++) - { - soap_out_swad__course(soap, "item", -1, &a->__ptr[i], ""); - } - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__coursesArray * SOAP_FMAC4 soap_in_swad__coursesArray(struct soap *soap, const char *tag, struct swad__coursesArray *a, const char *type) -{ int i, j; - struct swad__course *p; - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (*soap->type && soap_match_array(soap, "swad:course") && soap_match_tag(soap, soap->type, type)) - { soap->error = SOAP_TYPE; - return NULL; - } - a = (struct swad__coursesArray *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__coursesArray, sizeof(struct swad__coursesArray), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__coursesArray(soap, a); - if (soap->body && !*soap->href) - { - a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j); - if (a->__size >= 0) - { a->__ptr = (struct swad__course *)soap_malloc(soap, sizeof(struct swad__course) * a->__size); - for (i = 0; i < a->__size; i++) - soap_default_swad__course(soap, a->__ptr+i); - for (i = 0; i < a->__size; i++) - { soap_peek_element(soap); - if (soap->position) - { i = soap->positions[0]-j; - if (i < 0 || i >= a->__size) - { soap->error = SOAP_IOB; - return NULL; - } - } - if (!soap_in_swad__course(soap, NULL, a->__ptr + i, "swad:course")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - } - else - { if (soap_new_block(soap) == NULL) - return NULL; - for (a->__size = 0; ; a->__size++) - { p = (struct swad__course *)soap_push_block(soap, NULL, sizeof(struct swad__course)); - if (!p) - return NULL; - soap_default_swad__course(soap, p); - if (!soap_in_swad__course(soap, NULL, p, "swad:course")) - { if (soap->error != SOAP_NO_TAG) - return NULL; - soap->error = SOAP_OK; - break; - } - } - soap_pop_block(soap, NULL); - a->__ptr = (struct swad__course *)soap_malloc(soap, soap->blist->size); - soap_save_block(soap, NULL, (char*)a->__ptr, 1); - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__coursesArray *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__coursesArray, 0, sizeof(struct swad__coursesArray), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__coursesArray(struct soap *soap, const struct swad__coursesArray *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, (struct soap_array*)(void*)&a->__ptr, 1, tag, SOAP_TYPE_swad__coursesArray); - if (soap_out_swad__coursesArray(soap, tag?tag:"swad:coursesArray", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__coursesArray * SOAP_FMAC4 soap_get_swad__coursesArray(struct soap *soap, struct swad__coursesArray *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__coursesArray(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__course(struct soap *soap, struct swad__course *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->courseCode); - soap_default_string(soap, &a->courseShortName); - soap_default_string(soap, &a->courseFullName); - soap_default_int(soap, &a->userRole); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__course(struct soap *soap, const struct swad__course *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->courseShortName); - soap_serialize_string(soap, &a->courseFullName); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__course(struct soap *soap, const char *tag, int id, const struct swad__course *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__course), type)) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_string(soap, "courseShortName", -1, &a->courseShortName, "")) - return soap->error; - if (soap_out_string(soap, "courseFullName", -1, &a->courseFullName, "")) - return soap->error; - if (soap_out_int(soap, "userRole", -1, &a->userRole, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__course * SOAP_FMAC4 soap_in_swad__course(struct soap *soap, const char *tag, struct swad__course *a, const char *type) -{ - size_t soap_flag_courseCode = 1; - size_t soap_flag_courseShortName = 1; - size_t soap_flag_courseFullName = 1; - size_t soap_flag_userRole = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__course *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__course, sizeof(struct swad__course), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__course(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_courseShortName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "courseShortName", &a->courseShortName, "xsd:string")) - { soap_flag_courseShortName--; - continue; - } - if (soap_flag_courseFullName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "courseFullName", &a->courseFullName, "xsd:string")) - { soap_flag_courseFullName--; - continue; - } - if (soap_flag_userRole && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userRole", &a->userRole, "xsd:int")) - { soap_flag_userRole--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__course *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__course, 0, sizeof(struct swad__course), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_courseCode > 0 || soap_flag_userRole > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__course(struct soap *soap, const struct swad__course *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__course); - if (soap_out_swad__course(soap, tag?tag:"swad:course", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__course * SOAP_FMAC4 soap_get_swad__course(struct soap *soap, struct swad__course *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__course(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNewPasswordOutput(struct soap *soap, struct swad__getNewPasswordOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->success); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNewPasswordOutput(struct soap *soap, const struct swad__getNewPasswordOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNewPasswordOutput(struct soap *soap, const char *tag, int id, const struct swad__getNewPasswordOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__getNewPasswordOutput), type)) - return soap->error; - if (soap_out_int(soap, "success", -1, &a->success, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__getNewPasswordOutput * SOAP_FMAC4 soap_in_swad__getNewPasswordOutput(struct soap *soap, const char *tag, struct swad__getNewPasswordOutput *a, const char *type) -{ - size_t soap_flag_success = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__getNewPasswordOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__getNewPasswordOutput, sizeof(struct swad__getNewPasswordOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__getNewPasswordOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_success && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "success", &a->success, "xsd:int")) - { soap_flag_success--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__getNewPasswordOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__getNewPasswordOutput, 0, sizeof(struct swad__getNewPasswordOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_success > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNewPasswordOutput(struct soap *soap, const struct swad__getNewPasswordOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__getNewPasswordOutput); - if (soap_out_swad__getNewPasswordOutput(soap, tag?tag:"swad:getNewPasswordOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getNewPasswordOutput * SOAP_FMAC4 soap_get_swad__getNewPasswordOutput(struct soap *soap, struct swad__getNewPasswordOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__getNewPasswordOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginByUserPasswordKeyOutput(struct soap *soap, struct swad__loginByUserPasswordKeyOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->userCode); - soap_default_string(soap, &a->wsKey); - soap_default_string(soap, &a->userNickname); - soap_default_string(soap, &a->userID); - soap_default_string(soap, &a->userSurname1); - soap_default_string(soap, &a->userSurname2); - soap_default_string(soap, &a->userFirstname); - soap_default_string(soap, &a->userPhoto); - soap_default_string(soap, &a->userBirthday); - soap_default_int(soap, &a->userRole); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginByUserPasswordKeyOutput(struct soap *soap, const struct swad__loginByUserPasswordKeyOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->userNickname); - soap_serialize_string(soap, &a->userID); - soap_serialize_string(soap, &a->userSurname1); - soap_serialize_string(soap, &a->userSurname2); - soap_serialize_string(soap, &a->userFirstname); - soap_serialize_string(soap, &a->userPhoto); - soap_serialize_string(soap, &a->userBirthday); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginByUserPasswordKeyOutput(struct soap *soap, const char *tag, int id, const struct swad__loginByUserPasswordKeyOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__loginByUserPasswordKeyOutput), type)) - return soap->error; - if (soap_out_int(soap, "userCode", -1, &a->userCode, "")) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_string(soap, "userNickname", -1, &a->userNickname, "")) - return soap->error; - if (soap_out_string(soap, "userID", -1, &a->userID, "")) - return soap->error; - if (soap_out_string(soap, "userSurname1", -1, &a->userSurname1, "")) - return soap->error; - if (soap_out_string(soap, "userSurname2", -1, &a->userSurname2, "")) - return soap->error; - if (soap_out_string(soap, "userFirstname", -1, &a->userFirstname, "")) - return soap->error; - if (soap_out_string(soap, "userPhoto", -1, &a->userPhoto, "")) - return soap->error; - if (soap_out_string(soap, "userBirthday", -1, &a->userBirthday, "")) - return soap->error; - if (soap_out_int(soap, "userRole", -1, &a->userRole, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput * SOAP_FMAC4 soap_in_swad__loginByUserPasswordKeyOutput(struct soap *soap, const char *tag, struct swad__loginByUserPasswordKeyOutput *a, const char *type) -{ - size_t soap_flag_userCode = 1; - size_t soap_flag_wsKey = 1; - size_t soap_flag_userNickname = 1; - size_t soap_flag_userID = 1; - size_t soap_flag_userSurname1 = 1; - size_t soap_flag_userSurname2 = 1; - size_t soap_flag_userFirstname = 1; - size_t soap_flag_userPhoto = 1; - size_t soap_flag_userBirthday = 1; - size_t soap_flag_userRole = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__loginByUserPasswordKeyOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__loginByUserPasswordKeyOutput, sizeof(struct swad__loginByUserPasswordKeyOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__loginByUserPasswordKeyOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userCode", &a->userCode, "xsd:int")) - { soap_flag_userCode--; - continue; - } - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_userNickname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userNickname", &a->userNickname, "xsd:string")) - { soap_flag_userNickname--; - continue; - } - if (soap_flag_userID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userID", &a->userID, "xsd:string")) - { soap_flag_userID--; - continue; - } - if (soap_flag_userSurname1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname1", &a->userSurname1, "xsd:string")) - { soap_flag_userSurname1--; - continue; - } - if (soap_flag_userSurname2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname2", &a->userSurname2, "xsd:string")) - { soap_flag_userSurname2--; - continue; - } - if (soap_flag_userFirstname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userFirstname", &a->userFirstname, "xsd:string")) - { soap_flag_userFirstname--; - continue; - } - if (soap_flag_userPhoto && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPhoto", &a->userPhoto, "xsd:string")) - { soap_flag_userPhoto--; - continue; - } - if (soap_flag_userBirthday && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userBirthday", &a->userBirthday, "xsd:string")) - { soap_flag_userBirthday--; - continue; - } - if (soap_flag_userRole && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userRole", &a->userRole, "xsd:int")) - { soap_flag_userRole--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__loginByUserPasswordKeyOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__loginByUserPasswordKeyOutput, 0, sizeof(struct swad__loginByUserPasswordKeyOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_userCode > 0 || soap_flag_userRole > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginByUserPasswordKeyOutput(struct soap *soap, const struct swad__loginByUserPasswordKeyOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__loginByUserPasswordKeyOutput); - if (soap_out_swad__loginByUserPasswordKeyOutput(soap, tag?tag:"swad:loginByUserPasswordKeyOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput * SOAP_FMAC4 soap_get_swad__loginByUserPasswordKeyOutput(struct soap *soap, struct swad__loginByUserPasswordKeyOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__loginByUserPasswordKeyOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginBySessionKeyOutput(struct soap *soap, struct swad__loginBySessionKeyOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->userCode); - soap_default_int(soap, &a->degreeTypeCode); - soap_default_int(soap, &a->degreeCode); - soap_default_int(soap, &a->courseCode); - soap_default_string(soap, &a->wsKey); - soap_default_string(soap, &a->userNickname); - soap_default_string(soap, &a->userID); - soap_default_string(soap, &a->userSurname1); - soap_default_string(soap, &a->userSurname2); - soap_default_string(soap, &a->userFirstname); - soap_default_string(soap, &a->userPhoto); - soap_default_string(soap, &a->userBirthday); - soap_default_int(soap, &a->userRole); - soap_default_string(soap, &a->degreeTypeName); - soap_default_string(soap, &a->degreeName); - soap_default_string(soap, &a->courseName); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginBySessionKeyOutput(struct soap *soap, const struct swad__loginBySessionKeyOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->wsKey); - soap_serialize_string(soap, &a->userNickname); - soap_serialize_string(soap, &a->userID); - soap_serialize_string(soap, &a->userSurname1); - soap_serialize_string(soap, &a->userSurname2); - soap_serialize_string(soap, &a->userFirstname); - soap_serialize_string(soap, &a->userPhoto); - soap_serialize_string(soap, &a->userBirthday); - soap_serialize_string(soap, &a->degreeTypeName); - soap_serialize_string(soap, &a->degreeName); - soap_serialize_string(soap, &a->courseName); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginBySessionKeyOutput(struct soap *soap, const char *tag, int id, const struct swad__loginBySessionKeyOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__loginBySessionKeyOutput), type)) - return soap->error; - if (soap_out_int(soap, "userCode", -1, &a->userCode, "")) - return soap->error; - if (soap_out_int(soap, "degreeTypeCode", -1, &a->degreeTypeCode, "")) - return soap->error; - if (soap_out_int(soap, "degreeCode", -1, &a->degreeCode, "")) - return soap->error; - if (soap_out_int(soap, "courseCode", -1, &a->courseCode, "")) - return soap->error; - if (soap_out_string(soap, "wsKey", -1, &a->wsKey, "")) - return soap->error; - if (soap_out_string(soap, "userNickname", -1, &a->userNickname, "")) - return soap->error; - if (soap_out_string(soap, "userID", -1, &a->userID, "")) - return soap->error; - if (soap_out_string(soap, "userSurname1", -1, &a->userSurname1, "")) - return soap->error; - if (soap_out_string(soap, "userSurname2", -1, &a->userSurname2, "")) - return soap->error; - if (soap_out_string(soap, "userFirstname", -1, &a->userFirstname, "")) - return soap->error; - if (soap_out_string(soap, "userPhoto", -1, &a->userPhoto, "")) - return soap->error; - if (soap_out_string(soap, "userBirthday", -1, &a->userBirthday, "")) - return soap->error; - if (soap_out_int(soap, "userRole", -1, &a->userRole, "")) - return soap->error; - if (soap_out_string(soap, "degreeTypeName", -1, &a->degreeTypeName, "")) - return soap->error; - if (soap_out_string(soap, "degreeName", -1, &a->degreeName, "")) - return soap->error; - if (soap_out_string(soap, "courseName", -1, &a->courseName, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__loginBySessionKeyOutput * SOAP_FMAC4 soap_in_swad__loginBySessionKeyOutput(struct soap *soap, const char *tag, struct swad__loginBySessionKeyOutput *a, const char *type) -{ - size_t soap_flag_userCode = 1; - size_t soap_flag_degreeTypeCode = 1; - size_t soap_flag_degreeCode = 1; - size_t soap_flag_courseCode = 1; - size_t soap_flag_wsKey = 1; - size_t soap_flag_userNickname = 1; - size_t soap_flag_userID = 1; - size_t soap_flag_userSurname1 = 1; - size_t soap_flag_userSurname2 = 1; - size_t soap_flag_userFirstname = 1; - size_t soap_flag_userPhoto = 1; - size_t soap_flag_userBirthday = 1; - size_t soap_flag_userRole = 1; - size_t soap_flag_degreeTypeName = 1; - size_t soap_flag_degreeName = 1; - size_t soap_flag_courseName = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__loginBySessionKeyOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__loginBySessionKeyOutput, sizeof(struct swad__loginBySessionKeyOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__loginBySessionKeyOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userCode", &a->userCode, "xsd:int")) - { soap_flag_userCode--; - continue; - } - if (soap_flag_degreeTypeCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "degreeTypeCode", &a->degreeTypeCode, "xsd:int")) - { soap_flag_degreeTypeCode--; - continue; - } - if (soap_flag_degreeCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "degreeCode", &a->degreeCode, "xsd:int")) - { soap_flag_degreeCode--; - continue; - } - if (soap_flag_courseCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "courseCode", &a->courseCode, "xsd:int")) - { soap_flag_courseCode--; - continue; - } - if (soap_flag_wsKey && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "wsKey", &a->wsKey, "xsd:string")) - { soap_flag_wsKey--; - continue; - } - if (soap_flag_userNickname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userNickname", &a->userNickname, "xsd:string")) - { soap_flag_userNickname--; - continue; - } - if (soap_flag_userID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userID", &a->userID, "xsd:string")) - { soap_flag_userID--; - continue; - } - if (soap_flag_userSurname1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname1", &a->userSurname1, "xsd:string")) - { soap_flag_userSurname1--; - continue; - } - if (soap_flag_userSurname2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userSurname2", &a->userSurname2, "xsd:string")) - { soap_flag_userSurname2--; - continue; - } - if (soap_flag_userFirstname && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userFirstname", &a->userFirstname, "xsd:string")) - { soap_flag_userFirstname--; - continue; - } - if (soap_flag_userPhoto && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userPhoto", &a->userPhoto, "xsd:string")) - { soap_flag_userPhoto--; - continue; - } - if (soap_flag_userBirthday && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "userBirthday", &a->userBirthday, "xsd:string")) - { soap_flag_userBirthday--; - continue; - } - if (soap_flag_userRole && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userRole", &a->userRole, "xsd:int")) - { soap_flag_userRole--; - continue; - } - if (soap_flag_degreeTypeName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "degreeTypeName", &a->degreeTypeName, "xsd:string")) - { soap_flag_degreeTypeName--; - continue; - } - if (soap_flag_degreeName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "degreeName", &a->degreeName, "xsd:string")) - { soap_flag_degreeName--; - continue; - } - if (soap_flag_courseName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "courseName", &a->courseName, "xsd:string")) - { soap_flag_courseName--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__loginBySessionKeyOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__loginBySessionKeyOutput, 0, sizeof(struct swad__loginBySessionKeyOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_userCode > 0 || soap_flag_degreeTypeCode > 0 || soap_flag_degreeCode > 0 || soap_flag_courseCode > 0 || soap_flag_userRole > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginBySessionKeyOutput(struct soap *soap, const struct swad__loginBySessionKeyOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__loginBySessionKeyOutput); - if (soap_out_swad__loginBySessionKeyOutput(soap, tag?tag:"swad:loginBySessionKeyOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__loginBySessionKeyOutput * SOAP_FMAC4 soap_get_swad__loginBySessionKeyOutput(struct soap *soap, struct swad__loginBySessionKeyOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__loginBySessionKeyOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__createAccountOutput(struct soap *soap, struct swad__createAccountOutput *a) -{ - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_default_int(soap, &a->userCode); - soap_default_string(soap, &a->string); -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__createAccountOutput(struct soap *soap, const struct swad__createAccountOutput *a) -{ -#ifndef WITH_NOIDREF - (void)soap; (void)a; /* appease -Wall -Werror */ - soap_serialize_string(soap, &a->string); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__createAccountOutput(struct soap *soap, const char *tag, int id, const struct swad__createAccountOutput *a, const char *type) -{ - (void)soap; (void)tag; (void)id; (void)type; - if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_swad__createAccountOutput), type)) - return soap->error; - if (soap_out_int(soap, "userCode", -1, &a->userCode, "")) - return soap->error; - if (soap_out_string(soap, "string", -1, &a->string, "")) - return soap->error; - return soap_element_end_out(soap, tag); -} - -SOAP_FMAC3 struct swad__createAccountOutput * SOAP_FMAC4 soap_in_swad__createAccountOutput(struct soap *soap, const char *tag, struct swad__createAccountOutput *a, const char *type) -{ - size_t soap_flag_userCode = 1; - size_t soap_flag_string = 1; - if (soap_element_begin_in(soap, tag, 0, type)) - return NULL; - a = (struct swad__createAccountOutput *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_swad__createAccountOutput, sizeof(struct swad__createAccountOutput), 0, NULL, NULL, NULL); - if (!a) - return NULL; - soap_default_swad__createAccountOutput(soap, a); - if (soap->body && !*soap->href) - { - for (;;) - { soap->error = SOAP_TAG_MISMATCH; - if (soap_flag_userCode && soap->error == SOAP_TAG_MISMATCH) - if (soap_in_int(soap, "userCode", &a->userCode, "xsd:int")) - { soap_flag_userCode--; - continue; - } - if (soap_flag_string && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) - if (soap_in_string(soap, "string", &a->string, "xsd:string")) - { soap_flag_string--; - continue; - } - if (soap->error == SOAP_TAG_MISMATCH) - soap->error = soap_ignore_element(soap); - if (soap->error == SOAP_NO_TAG) - break; - if (soap->error) - return NULL; - } - if (soap_element_end_in(soap, tag)) - return NULL; - } - else - { a = (struct swad__createAccountOutput *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_swad__createAccountOutput, 0, sizeof(struct swad__createAccountOutput), 0, NULL); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_userCode > 0)) - { soap->error = SOAP_OCCURS; - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__createAccountOutput(struct soap *soap, const struct swad__createAccountOutput *a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_swad__createAccountOutput); - if (soap_out_swad__createAccountOutput(soap, tag?tag:"swad:createAccountOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__createAccountOutput * SOAP_FMAC4 soap_get_swad__createAccountOutput(struct soap *soap, struct swad__createAccountOutput *p, const char *tag, const char *type) -{ - if ((p = soap_in_swad__createAccountOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Reason)) - soap_serialize_SOAP_ENV__Reason(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Reason *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Reason); - if (id < 0) - return soap->error; - return soap_out_SOAP_ENV__Reason(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct SOAP_ENV__Reason **)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_SOAP_ENV__Reason(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct SOAP_ENV__Reason **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Reason); - if (soap_out_PointerToSOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToSOAP_ENV__Reason(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Detail)) - soap_serialize_SOAP_ENV__Detail(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Detail *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Detail); - if (id < 0) - return soap->error; - return soap_out_SOAP_ENV__Detail(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct SOAP_ENV__Detail **)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_SOAP_ENV__Detail(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct SOAP_ENV__Detail **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Detail); - if (soap_out_PointerToSOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToSOAP_ENV__Detail(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -#ifndef WITH_NOGLOBAL - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Code)) - soap_serialize_SOAP_ENV__Code(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Code *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Code); - if (id < 0) - return soap->error; - return soap_out_SOAP_ENV__Code(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct SOAP_ENV__Code **)soap_malloc(soap, sizeof(struct SOAP_ENV__Code *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_SOAP_ENV__Code(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct SOAP_ENV__Code **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Code); - if (soap_out_PointerToSOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToSOAP_ENV__Code(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#endif - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendMessageOutput(struct soap *soap, struct swad__sendMessageOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__sendMessageOutput)) - soap_serialize_swad__sendMessageOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendMessageOutput(struct soap *soap, const char *tag, int id, struct swad__sendMessageOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__sendMessageOutput); - if (id < 0) - return soap->error; - return soap_out_swad__sendMessageOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__sendMessageOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendMessageOutput(struct soap *soap, const char *tag, struct swad__sendMessageOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__sendMessageOutput **)soap_malloc(soap, sizeof(struct swad__sendMessageOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__sendMessageOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__sendMessageOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__sendMessageOutput, sizeof(struct swad__sendMessageOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendMessageOutput(struct soap *soap, struct swad__sendMessageOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__sendMessageOutput); - if (soap_out_PointerToswad__sendMessageOutput(soap, tag?tag:"swad:sendMessageOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendMessageOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendMessageOutput(struct soap *soap, struct swad__sendMessageOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__sendMessageOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendNoticeOutput(struct soap *soap, struct swad__sendNoticeOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__sendNoticeOutput)) - soap_serialize_swad__sendNoticeOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendNoticeOutput(struct soap *soap, const char *tag, int id, struct swad__sendNoticeOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__sendNoticeOutput); - if (id < 0) - return soap->error; - return soap_out_swad__sendNoticeOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__sendNoticeOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendNoticeOutput(struct soap *soap, const char *tag, struct swad__sendNoticeOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__sendNoticeOutput **)soap_malloc(soap, sizeof(struct swad__sendNoticeOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__sendNoticeOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__sendNoticeOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__sendNoticeOutput, sizeof(struct swad__sendNoticeOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendNoticeOutput(struct soap *soap, struct swad__sendNoticeOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__sendNoticeOutput); - if (soap_out_PointerToswad__sendNoticeOutput(soap, tag?tag:"swad:sendNoticeOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendNoticeOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendNoticeOutput(struct soap *soap, struct swad__sendNoticeOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__sendNoticeOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__markNotificationsAsReadOutput(struct soap *soap, struct swad__markNotificationsAsReadOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__markNotificationsAsReadOutput)) - soap_serialize_swad__markNotificationsAsReadOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__markNotificationsAsReadOutput(struct soap *soap, const char *tag, int id, struct swad__markNotificationsAsReadOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__markNotificationsAsReadOutput); - if (id < 0) - return soap->error; - return soap_out_swad__markNotificationsAsReadOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput ** SOAP_FMAC4 soap_in_PointerToswad__markNotificationsAsReadOutput(struct soap *soap, const char *tag, struct swad__markNotificationsAsReadOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__markNotificationsAsReadOutput **)soap_malloc(soap, sizeof(struct swad__markNotificationsAsReadOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__markNotificationsAsReadOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__markNotificationsAsReadOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__markNotificationsAsReadOutput, sizeof(struct swad__markNotificationsAsReadOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__markNotificationsAsReadOutput(struct soap *soap, struct swad__markNotificationsAsReadOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__markNotificationsAsReadOutput); - if (soap_out_PointerToswad__markNotificationsAsReadOutput(soap, tag?tag:"swad:markNotificationsAsReadOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput ** SOAP_FMAC4 soap_get_PointerToswad__markNotificationsAsReadOutput(struct soap *soap, struct swad__markNotificationsAsReadOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__markNotificationsAsReadOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getNotificationsOutput(struct soap *soap, struct swad__getNotificationsOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getNotificationsOutput)) - soap_serialize_swad__getNotificationsOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getNotificationsOutput(struct soap *soap, const char *tag, int id, struct swad__getNotificationsOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getNotificationsOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getNotificationsOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getNotificationsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getNotificationsOutput(struct soap *soap, const char *tag, struct swad__getNotificationsOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getNotificationsOutput **)soap_malloc(soap, sizeof(struct swad__getNotificationsOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getNotificationsOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getNotificationsOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getNotificationsOutput, sizeof(struct swad__getNotificationsOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getNotificationsOutput(struct soap *soap, struct swad__getNotificationsOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getNotificationsOutput); - if (soap_out_PointerToswad__getNotificationsOutput(soap, tag?tag:"swad:getNotificationsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getNotificationsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getNotificationsOutput(struct soap *soap, struct swad__getNotificationsOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getNotificationsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendAttendanceUsersOutput(struct soap *soap, struct swad__sendAttendanceUsersOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__sendAttendanceUsersOutput)) - soap_serialize_swad__sendAttendanceUsersOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendAttendanceUsersOutput(struct soap *soap, const char *tag, int id, struct swad__sendAttendanceUsersOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__sendAttendanceUsersOutput); - if (id < 0) - return soap->error; - return soap_out_swad__sendAttendanceUsersOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendAttendanceUsersOutput(struct soap *soap, const char *tag, struct swad__sendAttendanceUsersOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__sendAttendanceUsersOutput **)soap_malloc(soap, sizeof(struct swad__sendAttendanceUsersOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__sendAttendanceUsersOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__sendAttendanceUsersOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__sendAttendanceUsersOutput, sizeof(struct swad__sendAttendanceUsersOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendAttendanceUsersOutput(struct soap *soap, struct swad__sendAttendanceUsersOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__sendAttendanceUsersOutput); - if (soap_out_PointerToswad__sendAttendanceUsersOutput(soap, tag?tag:"swad:sendAttendanceUsersOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendAttendanceUsersOutput(struct soap *soap, struct swad__sendAttendanceUsersOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__sendAttendanceUsersOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getAttendanceUsersOutput(struct soap *soap, struct swad__getAttendanceUsersOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getAttendanceUsersOutput)) - soap_serialize_swad__getAttendanceUsersOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getAttendanceUsersOutput(struct soap *soap, const char *tag, int id, struct swad__getAttendanceUsersOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getAttendanceUsersOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getAttendanceUsersOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getAttendanceUsersOutput ** SOAP_FMAC4 soap_in_PointerToswad__getAttendanceUsersOutput(struct soap *soap, const char *tag, struct swad__getAttendanceUsersOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getAttendanceUsersOutput **)soap_malloc(soap, sizeof(struct swad__getAttendanceUsersOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getAttendanceUsersOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getAttendanceUsersOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getAttendanceUsersOutput, sizeof(struct swad__getAttendanceUsersOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getAttendanceUsersOutput(struct soap *soap, struct swad__getAttendanceUsersOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getAttendanceUsersOutput); - if (soap_out_PointerToswad__getAttendanceUsersOutput(soap, tag?tag:"swad:getAttendanceUsersOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getAttendanceUsersOutput ** SOAP_FMAC4 soap_get_PointerToswad__getAttendanceUsersOutput(struct soap *soap, struct swad__getAttendanceUsersOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getAttendanceUsersOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendAttendanceEventOutput(struct soap *soap, struct swad__sendAttendanceEventOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__sendAttendanceEventOutput)) - soap_serialize_swad__sendAttendanceEventOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendAttendanceEventOutput(struct soap *soap, const char *tag, int id, struct swad__sendAttendanceEventOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__sendAttendanceEventOutput); - if (id < 0) - return soap->error; - return soap_out_swad__sendAttendanceEventOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__sendAttendanceEventOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendAttendanceEventOutput(struct soap *soap, const char *tag, struct swad__sendAttendanceEventOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__sendAttendanceEventOutput **)soap_malloc(soap, sizeof(struct swad__sendAttendanceEventOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__sendAttendanceEventOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__sendAttendanceEventOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__sendAttendanceEventOutput, sizeof(struct swad__sendAttendanceEventOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendAttendanceEventOutput(struct soap *soap, struct swad__sendAttendanceEventOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__sendAttendanceEventOutput); - if (soap_out_PointerToswad__sendAttendanceEventOutput(soap, tag?tag:"swad:sendAttendanceEventOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendAttendanceEventOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendAttendanceEventOutput(struct soap *soap, struct swad__sendAttendanceEventOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__sendAttendanceEventOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getAttendanceEventsOutput(struct soap *soap, struct swad__getAttendanceEventsOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getAttendanceEventsOutput)) - soap_serialize_swad__getAttendanceEventsOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getAttendanceEventsOutput(struct soap *soap, const char *tag, int id, struct swad__getAttendanceEventsOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getAttendanceEventsOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getAttendanceEventsOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getAttendanceEventsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getAttendanceEventsOutput(struct soap *soap, const char *tag, struct swad__getAttendanceEventsOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getAttendanceEventsOutput **)soap_malloc(soap, sizeof(struct swad__getAttendanceEventsOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getAttendanceEventsOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getAttendanceEventsOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getAttendanceEventsOutput, sizeof(struct swad__getAttendanceEventsOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getAttendanceEventsOutput(struct soap *soap, struct swad__getAttendanceEventsOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getAttendanceEventsOutput); - if (soap_out_PointerToswad__getAttendanceEventsOutput(soap, tag?tag:"swad:getAttendanceEventsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getAttendanceEventsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getAttendanceEventsOutput(struct soap *soap, struct swad__getAttendanceEventsOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getAttendanceEventsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getUsersOutput(struct soap *soap, struct swad__getUsersOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getUsersOutput)) - soap_serialize_swad__getUsersOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getUsersOutput(struct soap *soap, const char *tag, int id, struct swad__getUsersOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getUsersOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getUsersOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getUsersOutput ** SOAP_FMAC4 soap_in_PointerToswad__getUsersOutput(struct soap *soap, const char *tag, struct swad__getUsersOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getUsersOutput **)soap_malloc(soap, sizeof(struct swad__getUsersOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getUsersOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getUsersOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getUsersOutput, sizeof(struct swad__getUsersOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getUsersOutput(struct soap *soap, struct swad__getUsersOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getUsersOutput); - if (soap_out_PointerToswad__getUsersOutput(soap, tag?tag:"swad:getUsersOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getUsersOutput ** SOAP_FMAC4 soap_get_PointerToswad__getUsersOutput(struct soap *soap, struct swad__getUsersOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getUsersOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getTestsOutput(struct soap *soap, struct swad__getTestsOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getTestsOutput)) - soap_serialize_swad__getTestsOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getTestsOutput(struct soap *soap, const char *tag, int id, struct swad__getTestsOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getTestsOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getTestsOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getTestsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getTestsOutput(struct soap *soap, const char *tag, struct swad__getTestsOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getTestsOutput **)soap_malloc(soap, sizeof(struct swad__getTestsOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getTestsOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getTestsOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getTestsOutput, sizeof(struct swad__getTestsOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getTestsOutput(struct soap *soap, struct swad__getTestsOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getTestsOutput); - if (soap_out_PointerToswad__getTestsOutput(soap, tag?tag:"swad:getTestsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getTestsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getTestsOutput(struct soap *soap, struct swad__getTestsOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getTestsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getTestConfigOutput(struct soap *soap, struct swad__getTestConfigOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getTestConfigOutput)) - soap_serialize_swad__getTestConfigOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getTestConfigOutput(struct soap *soap, const char *tag, int id, struct swad__getTestConfigOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getTestConfigOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getTestConfigOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getTestConfigOutput ** SOAP_FMAC4 soap_in_PointerToswad__getTestConfigOutput(struct soap *soap, const char *tag, struct swad__getTestConfigOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getTestConfigOutput **)soap_malloc(soap, sizeof(struct swad__getTestConfigOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getTestConfigOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getTestConfigOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getTestConfigOutput, sizeof(struct swad__getTestConfigOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getTestConfigOutput(struct soap *soap, struct swad__getTestConfigOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getTestConfigOutput); - if (soap_out_PointerToswad__getTestConfigOutput(soap, tag?tag:"swad:getTestConfigOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getTestConfigOutput ** SOAP_FMAC4 soap_get_PointerToswad__getTestConfigOutput(struct soap *soap, struct swad__getTestConfigOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getTestConfigOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getMarksOutput(struct soap *soap, struct swad__getMarksOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getMarksOutput)) - soap_serialize_swad__getMarksOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getMarksOutput(struct soap *soap, const char *tag, int id, struct swad__getMarksOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getMarksOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getMarksOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getMarksOutput ** SOAP_FMAC4 soap_in_PointerToswad__getMarksOutput(struct soap *soap, const char *tag, struct swad__getMarksOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getMarksOutput **)soap_malloc(soap, sizeof(struct swad__getMarksOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getMarksOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getMarksOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getMarksOutput, sizeof(struct swad__getMarksOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getMarksOutput(struct soap *soap, struct swad__getMarksOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getMarksOutput); - if (soap_out_PointerToswad__getMarksOutput(soap, tag?tag:"swad:getMarksOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getMarksOutput ** SOAP_FMAC4 soap_get_PointerToswad__getMarksOutput(struct soap *soap, struct swad__getMarksOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getMarksOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getFileOutput(struct soap *soap, struct swad__getFileOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getFileOutput)) - soap_serialize_swad__getFileOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getFileOutput(struct soap *soap, const char *tag, int id, struct swad__getFileOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getFileOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getFileOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getFileOutput ** SOAP_FMAC4 soap_in_PointerToswad__getFileOutput(struct soap *soap, const char *tag, struct swad__getFileOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getFileOutput **)soap_malloc(soap, sizeof(struct swad__getFileOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getFileOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getFileOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getFileOutput, sizeof(struct swad__getFileOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getFileOutput(struct soap *soap, struct swad__getFileOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getFileOutput); - if (soap_out_PointerToswad__getFileOutput(soap, tag?tag:"swad:getFileOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getFileOutput ** SOAP_FMAC4 soap_get_PointerToswad__getFileOutput(struct soap *soap, struct swad__getFileOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getFileOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getDirectoryTreeOutput(struct soap *soap, struct swad__getDirectoryTreeOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getDirectoryTreeOutput)) - soap_serialize_swad__getDirectoryTreeOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getDirectoryTreeOutput(struct soap *soap, const char *tag, int id, struct swad__getDirectoryTreeOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getDirectoryTreeOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getDirectoryTreeOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getDirectoryTreeOutput ** SOAP_FMAC4 soap_in_PointerToswad__getDirectoryTreeOutput(struct soap *soap, const char *tag, struct swad__getDirectoryTreeOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getDirectoryTreeOutput **)soap_malloc(soap, sizeof(struct swad__getDirectoryTreeOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getDirectoryTreeOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getDirectoryTreeOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getDirectoryTreeOutput, sizeof(struct swad__getDirectoryTreeOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getDirectoryTreeOutput(struct soap *soap, struct swad__getDirectoryTreeOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getDirectoryTreeOutput); - if (soap_out_PointerToswad__getDirectoryTreeOutput(soap, tag?tag:"swad:getDirectoryTreeOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getDirectoryTreeOutput ** SOAP_FMAC4 soap_get_PointerToswad__getDirectoryTreeOutput(struct soap *soap, struct swad__getDirectoryTreeOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getDirectoryTreeOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendMyGroupsOutput(struct soap *soap, struct swad__sendMyGroupsOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__sendMyGroupsOutput)) - soap_serialize_swad__sendMyGroupsOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendMyGroupsOutput(struct soap *soap, const char *tag, int id, struct swad__sendMyGroupsOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__sendMyGroupsOutput); - if (id < 0) - return soap->error; - return soap_out_swad__sendMyGroupsOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__sendMyGroupsOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendMyGroupsOutput(struct soap *soap, const char *tag, struct swad__sendMyGroupsOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__sendMyGroupsOutput **)soap_malloc(soap, sizeof(struct swad__sendMyGroupsOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__sendMyGroupsOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__sendMyGroupsOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__sendMyGroupsOutput, sizeof(struct swad__sendMyGroupsOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendMyGroupsOutput(struct soap *soap, struct swad__sendMyGroupsOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__sendMyGroupsOutput); - if (soap_out_PointerToswad__sendMyGroupsOutput(soap, tag?tag:"swad:sendMyGroupsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__sendMyGroupsOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendMyGroupsOutput(struct soap *soap, struct swad__sendMyGroupsOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__sendMyGroupsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getGroupsOutput(struct soap *soap, struct swad__getGroupsOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getGroupsOutput)) - soap_serialize_swad__getGroupsOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getGroupsOutput(struct soap *soap, const char *tag, int id, struct swad__getGroupsOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getGroupsOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getGroupsOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getGroupsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getGroupsOutput(struct soap *soap, const char *tag, struct swad__getGroupsOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getGroupsOutput **)soap_malloc(soap, sizeof(struct swad__getGroupsOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getGroupsOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getGroupsOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getGroupsOutput, sizeof(struct swad__getGroupsOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getGroupsOutput(struct soap *soap, struct swad__getGroupsOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getGroupsOutput); - if (soap_out_PointerToswad__getGroupsOutput(soap, tag?tag:"swad:getGroupsOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getGroupsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getGroupsOutput(struct soap *soap, struct swad__getGroupsOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getGroupsOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getGroupTypesOutput(struct soap *soap, struct swad__getGroupTypesOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getGroupTypesOutput)) - soap_serialize_swad__getGroupTypesOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getGroupTypesOutput(struct soap *soap, const char *tag, int id, struct swad__getGroupTypesOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getGroupTypesOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getGroupTypesOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getGroupTypesOutput ** SOAP_FMAC4 soap_in_PointerToswad__getGroupTypesOutput(struct soap *soap, const char *tag, struct swad__getGroupTypesOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getGroupTypesOutput **)soap_malloc(soap, sizeof(struct swad__getGroupTypesOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getGroupTypesOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getGroupTypesOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getGroupTypesOutput, sizeof(struct swad__getGroupTypesOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getGroupTypesOutput(struct soap *soap, struct swad__getGroupTypesOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getGroupTypesOutput); - if (soap_out_PointerToswad__getGroupTypesOutput(soap, tag?tag:"swad:getGroupTypesOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getGroupTypesOutput ** SOAP_FMAC4 soap_get_PointerToswad__getGroupTypesOutput(struct soap *soap, struct swad__getGroupTypesOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getGroupTypesOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getCourseInfoOutput(struct soap *soap, struct swad__getCourseInfoOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getCourseInfoOutput)) - soap_serialize_swad__getCourseInfoOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getCourseInfoOutput(struct soap *soap, const char *tag, int id, struct swad__getCourseInfoOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getCourseInfoOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getCourseInfoOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getCourseInfoOutput ** SOAP_FMAC4 soap_in_PointerToswad__getCourseInfoOutput(struct soap *soap, const char *tag, struct swad__getCourseInfoOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getCourseInfoOutput **)soap_malloc(soap, sizeof(struct swad__getCourseInfoOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getCourseInfoOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getCourseInfoOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getCourseInfoOutput, sizeof(struct swad__getCourseInfoOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getCourseInfoOutput(struct soap *soap, struct swad__getCourseInfoOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getCourseInfoOutput); - if (soap_out_PointerToswad__getCourseInfoOutput(soap, tag?tag:"swad:getCourseInfoOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getCourseInfoOutput ** SOAP_FMAC4 soap_get_PointerToswad__getCourseInfoOutput(struct soap *soap, struct swad__getCourseInfoOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getCourseInfoOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getCoursesOutput(struct soap *soap, struct swad__getCoursesOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getCoursesOutput)) - soap_serialize_swad__getCoursesOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getCoursesOutput(struct soap *soap, const char *tag, int id, struct swad__getCoursesOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getCoursesOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getCoursesOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getCoursesOutput ** SOAP_FMAC4 soap_in_PointerToswad__getCoursesOutput(struct soap *soap, const char *tag, struct swad__getCoursesOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getCoursesOutput **)soap_malloc(soap, sizeof(struct swad__getCoursesOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getCoursesOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getCoursesOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getCoursesOutput, sizeof(struct swad__getCoursesOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getCoursesOutput(struct soap *soap, struct swad__getCoursesOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getCoursesOutput); - if (soap_out_PointerToswad__getCoursesOutput(soap, tag?tag:"swad:getCoursesOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getCoursesOutput ** SOAP_FMAC4 soap_get_PointerToswad__getCoursesOutput(struct soap *soap, struct swad__getCoursesOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getCoursesOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getNewPasswordOutput(struct soap *soap, struct swad__getNewPasswordOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__getNewPasswordOutput)) - soap_serialize_swad__getNewPasswordOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getNewPasswordOutput(struct soap *soap, const char *tag, int id, struct swad__getNewPasswordOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__getNewPasswordOutput); - if (id < 0) - return soap->error; - return soap_out_swad__getNewPasswordOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__getNewPasswordOutput ** SOAP_FMAC4 soap_in_PointerToswad__getNewPasswordOutput(struct soap *soap, const char *tag, struct swad__getNewPasswordOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__getNewPasswordOutput **)soap_malloc(soap, sizeof(struct swad__getNewPasswordOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__getNewPasswordOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__getNewPasswordOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__getNewPasswordOutput, sizeof(struct swad__getNewPasswordOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getNewPasswordOutput(struct soap *soap, struct swad__getNewPasswordOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__getNewPasswordOutput); - if (soap_out_PointerToswad__getNewPasswordOutput(soap, tag?tag:"swad:getNewPasswordOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__getNewPasswordOutput ** SOAP_FMAC4 soap_get_PointerToswad__getNewPasswordOutput(struct soap *soap, struct swad__getNewPasswordOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__getNewPasswordOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__loginBySessionKeyOutput(struct soap *soap, struct swad__loginBySessionKeyOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__loginBySessionKeyOutput)) - soap_serialize_swad__loginBySessionKeyOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__loginBySessionKeyOutput(struct soap *soap, const char *tag, int id, struct swad__loginBySessionKeyOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__loginBySessionKeyOutput); - if (id < 0) - return soap->error; - return soap_out_swad__loginBySessionKeyOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__loginBySessionKeyOutput ** SOAP_FMAC4 soap_in_PointerToswad__loginBySessionKeyOutput(struct soap *soap, const char *tag, struct swad__loginBySessionKeyOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__loginBySessionKeyOutput **)soap_malloc(soap, sizeof(struct swad__loginBySessionKeyOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__loginBySessionKeyOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__loginBySessionKeyOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__loginBySessionKeyOutput, sizeof(struct swad__loginBySessionKeyOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__loginBySessionKeyOutput(struct soap *soap, struct swad__loginBySessionKeyOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__loginBySessionKeyOutput); - if (soap_out_PointerToswad__loginBySessionKeyOutput(soap, tag?tag:"swad:loginBySessionKeyOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__loginBySessionKeyOutput ** SOAP_FMAC4 soap_get_PointerToswad__loginBySessionKeyOutput(struct soap *soap, struct swad__loginBySessionKeyOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__loginBySessionKeyOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__loginByUserPasswordKeyOutput(struct soap *soap, struct swad__loginByUserPasswordKeyOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__loginByUserPasswordKeyOutput)) - soap_serialize_swad__loginByUserPasswordKeyOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__loginByUserPasswordKeyOutput(struct soap *soap, const char *tag, int id, struct swad__loginByUserPasswordKeyOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__loginByUserPasswordKeyOutput); - if (id < 0) - return soap->error; - return soap_out_swad__loginByUserPasswordKeyOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput ** SOAP_FMAC4 soap_in_PointerToswad__loginByUserPasswordKeyOutput(struct soap *soap, const char *tag, struct swad__loginByUserPasswordKeyOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__loginByUserPasswordKeyOutput **)soap_malloc(soap, sizeof(struct swad__loginByUserPasswordKeyOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__loginByUserPasswordKeyOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__loginByUserPasswordKeyOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__loginByUserPasswordKeyOutput, sizeof(struct swad__loginByUserPasswordKeyOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__loginByUserPasswordKeyOutput(struct soap *soap, struct swad__loginByUserPasswordKeyOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__loginByUserPasswordKeyOutput); - if (soap_out_PointerToswad__loginByUserPasswordKeyOutput(soap, tag?tag:"swad:loginByUserPasswordKeyOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput ** SOAP_FMAC4 soap_get_PointerToswad__loginByUserPasswordKeyOutput(struct soap *soap, struct swad__loginByUserPasswordKeyOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__loginByUserPasswordKeyOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__createAccountOutput(struct soap *soap, struct swad__createAccountOutput *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__createAccountOutput)) - soap_serialize_swad__createAccountOutput(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__createAccountOutput(struct soap *soap, const char *tag, int id, struct swad__createAccountOutput *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__createAccountOutput); - if (id < 0) - return soap->error; - return soap_out_swad__createAccountOutput(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__createAccountOutput ** SOAP_FMAC4 soap_in_PointerToswad__createAccountOutput(struct soap *soap, const char *tag, struct swad__createAccountOutput **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__createAccountOutput **)soap_malloc(soap, sizeof(struct swad__createAccountOutput *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__createAccountOutput(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__createAccountOutput **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__createAccountOutput, sizeof(struct swad__createAccountOutput), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__createAccountOutput(struct soap *soap, struct swad__createAccountOutput *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__createAccountOutput); - if (soap_out_PointerToswad__createAccountOutput(soap, tag?tag:"swad:createAccountOutput", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__createAccountOutput ** SOAP_FMAC4 soap_get_PointerToswad__createAccountOutput(struct soap *soap, struct swad__createAccountOutput **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__createAccountOutput(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__attendanceUser(struct soap *soap, struct swad__attendanceUser *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__attendanceUser)) - soap_serialize_swad__attendanceUser(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__attendanceUser(struct soap *soap, const char *tag, int id, struct swad__attendanceUser *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__attendanceUser); - if (id < 0) - return soap->error; - return soap_out_swad__attendanceUser(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__attendanceUser ** SOAP_FMAC4 soap_in_PointerToswad__attendanceUser(struct soap *soap, const char *tag, struct swad__attendanceUser **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__attendanceUser **)soap_malloc(soap, sizeof(struct swad__attendanceUser *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__attendanceUser(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__attendanceUser **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__attendanceUser, sizeof(struct swad__attendanceUser), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__attendanceUser(struct soap *soap, struct swad__attendanceUser *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__attendanceUser); - if (soap_out_PointerToswad__attendanceUser(soap, tag?tag:"swad:attendanceUser", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__attendanceUser ** SOAP_FMAC4 soap_get_PointerToswad__attendanceUser(struct soap *soap, struct swad__attendanceUser **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__attendanceUser(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__attendanceEvent(struct soap *soap, struct swad__attendanceEvent *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__attendanceEvent)) - soap_serialize_swad__attendanceEvent(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__attendanceEvent(struct soap *soap, const char *tag, int id, struct swad__attendanceEvent *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__attendanceEvent); - if (id < 0) - return soap->error; - return soap_out_swad__attendanceEvent(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__attendanceEvent ** SOAP_FMAC4 soap_in_PointerToswad__attendanceEvent(struct soap *soap, const char *tag, struct swad__attendanceEvent **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__attendanceEvent **)soap_malloc(soap, sizeof(struct swad__attendanceEvent *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__attendanceEvent(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__attendanceEvent **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__attendanceEvent, sizeof(struct swad__attendanceEvent), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__attendanceEvent(struct soap *soap, struct swad__attendanceEvent *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__attendanceEvent); - if (soap_out_PointerToswad__attendanceEvent(soap, tag?tag:"swad:attendanceEvent", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__attendanceEvent ** SOAP_FMAC4 soap_get_PointerToswad__attendanceEvent(struct soap *soap, struct swad__attendanceEvent **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__attendanceEvent(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__user(struct soap *soap, struct swad__user *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__user)) - soap_serialize_swad__user(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__user(struct soap *soap, const char *tag, int id, struct swad__user *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__user); - if (id < 0) - return soap->error; - return soap_out_swad__user(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__user ** SOAP_FMAC4 soap_in_PointerToswad__user(struct soap *soap, const char *tag, struct swad__user **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__user **)soap_malloc(soap, sizeof(struct swad__user *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__user(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__user **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__user, sizeof(struct swad__user), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__user(struct soap *soap, struct swad__user *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__user); - if (soap_out_PointerToswad__user(soap, tag?tag:"swad:user", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__user ** SOAP_FMAC4 soap_get_PointerToswad__user(struct soap *soap, struct swad__user **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__user(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__questionTag(struct soap *soap, struct swad__questionTag *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__questionTag)) - soap_serialize_swad__questionTag(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__questionTag(struct soap *soap, const char *tag, int id, struct swad__questionTag *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__questionTag); - if (id < 0) - return soap->error; - return soap_out_swad__questionTag(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__questionTag ** SOAP_FMAC4 soap_in_PointerToswad__questionTag(struct soap *soap, const char *tag, struct swad__questionTag **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__questionTag **)soap_malloc(soap, sizeof(struct swad__questionTag *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__questionTag(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__questionTag **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__questionTag, sizeof(struct swad__questionTag), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__questionTag(struct soap *soap, struct swad__questionTag *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__questionTag); - if (soap_out_PointerToswad__questionTag(soap, tag?tag:"swad:questionTag", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__questionTag ** SOAP_FMAC4 soap_get_PointerToswad__questionTag(struct soap *soap, struct swad__questionTag **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__questionTag(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__answer(struct soap *soap, struct swad__answer *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__answer)) - soap_serialize_swad__answer(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__answer(struct soap *soap, const char *tag, int id, struct swad__answer *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__answer); - if (id < 0) - return soap->error; - return soap_out_swad__answer(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__answer ** SOAP_FMAC4 soap_in_PointerToswad__answer(struct soap *soap, const char *tag, struct swad__answer **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__answer **)soap_malloc(soap, sizeof(struct swad__answer *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__answer(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__answer **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__answer, sizeof(struct swad__answer), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__answer(struct soap *soap, struct swad__answer *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__answer); - if (soap_out_PointerToswad__answer(soap, tag?tag:"swad:answer", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__answer ** SOAP_FMAC4 soap_get_PointerToswad__answer(struct soap *soap, struct swad__answer **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__answer(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__question(struct soap *soap, struct swad__question *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__question)) - soap_serialize_swad__question(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__question(struct soap *soap, const char *tag, int id, struct swad__question *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__question); - if (id < 0) - return soap->error; - return soap_out_swad__question(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__question ** SOAP_FMAC4 soap_in_PointerToswad__question(struct soap *soap, const char *tag, struct swad__question **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__question **)soap_malloc(soap, sizeof(struct swad__question *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__question(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__question **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__question, sizeof(struct swad__question), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__question(struct soap *soap, struct swad__question *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__question); - if (soap_out_PointerToswad__question(soap, tag?tag:"swad:question", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__question ** SOAP_FMAC4 soap_get_PointerToswad__question(struct soap *soap, struct swad__question **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__question(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__tag(struct soap *soap, struct swad__tag *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__tag)) - soap_serialize_swad__tag(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__tag(struct soap *soap, const char *tag, int id, struct swad__tag *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__tag); - if (id < 0) - return soap->error; - return soap_out_swad__tag(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__tag ** SOAP_FMAC4 soap_in_PointerToswad__tag(struct soap *soap, const char *tag, struct swad__tag **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__tag **)soap_malloc(soap, sizeof(struct swad__tag *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__tag(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__tag **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__tag, sizeof(struct swad__tag), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__tag(struct soap *soap, struct swad__tag *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__tag); - if (soap_out_PointerToswad__tag(soap, tag?tag:"swad:tag", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__tag ** SOAP_FMAC4 soap_get_PointerToswad__tag(struct soap *soap, struct swad__tag **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__tag(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__notification(struct soap *soap, struct swad__notification *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__notification)) - soap_serialize_swad__notification(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__notification(struct soap *soap, const char *tag, int id, struct swad__notification *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__notification); - if (id < 0) - return soap->error; - return soap_out_swad__notification(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__notification ** SOAP_FMAC4 soap_in_PointerToswad__notification(struct soap *soap, const char *tag, struct swad__notification **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__notification **)soap_malloc(soap, sizeof(struct swad__notification *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__notification(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__notification **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__notification, sizeof(struct swad__notification), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__notification(struct soap *soap, struct swad__notification *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__notification); - if (soap_out_PointerToswad__notification(soap, tag?tag:"swad:notification", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__notification ** SOAP_FMAC4 soap_get_PointerToswad__notification(struct soap *soap, struct swad__notification **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__notification(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__group(struct soap *soap, struct swad__group *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__group)) - soap_serialize_swad__group(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__group(struct soap *soap, const char *tag, int id, struct swad__group *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__group); - if (id < 0) - return soap->error; - return soap_out_swad__group(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__group ** SOAP_FMAC4 soap_in_PointerToswad__group(struct soap *soap, const char *tag, struct swad__group **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__group **)soap_malloc(soap, sizeof(struct swad__group *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__group(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__group **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__group, sizeof(struct swad__group), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__group(struct soap *soap, struct swad__group *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__group); - if (soap_out_PointerToswad__group(soap, tag?tag:"swad:group", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__group ** SOAP_FMAC4 soap_get_PointerToswad__group(struct soap *soap, struct swad__group **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__group(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__groupType(struct soap *soap, struct swad__groupType *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__groupType)) - soap_serialize_swad__groupType(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__groupType(struct soap *soap, const char *tag, int id, struct swad__groupType *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__groupType); - if (id < 0) - return soap->error; - return soap_out_swad__groupType(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__groupType ** SOAP_FMAC4 soap_in_PointerToswad__groupType(struct soap *soap, const char *tag, struct swad__groupType **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__groupType **)soap_malloc(soap, sizeof(struct swad__groupType *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__groupType(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__groupType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__groupType, sizeof(struct swad__groupType), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__groupType(struct soap *soap, struct swad__groupType *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__groupType); - if (soap_out_PointerToswad__groupType(soap, tag?tag:"swad:groupType", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__groupType ** SOAP_FMAC4 soap_get_PointerToswad__groupType(struct soap *soap, struct swad__groupType **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__groupType(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__course(struct soap *soap, struct swad__course *const*a) -{ -#ifndef WITH_NOIDREF - if (!soap_reference(soap, *a, SOAP_TYPE_swad__course)) - soap_serialize_swad__course(soap, *a); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__course(struct soap *soap, const char *tag, int id, struct swad__course *const*a, const char *type) -{ - id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_swad__course); - if (id < 0) - return soap->error; - return soap_out_swad__course(soap, tag, id, *a, type); -} - -SOAP_FMAC3 struct swad__course ** SOAP_FMAC4 soap_in_PointerToswad__course(struct soap *soap, const char *tag, struct swad__course **a, const char *type) -{ - if (soap_element_begin_in(soap, tag, 1, NULL)) - return NULL; - if (!a) - if (!(a = (struct swad__course **)soap_malloc(soap, sizeof(struct swad__course *)))) - return NULL; - *a = NULL; - if (!soap->null && *soap->href != '#') - { soap_revert(soap); - if (!(*a = soap_in_swad__course(soap, tag, *a, type))) - return NULL; - } - else - { a = (struct swad__course **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_swad__course, sizeof(struct swad__course), 0); - if (soap->body && soap_element_end_in(soap, tag)) - return NULL; - } - return a; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__course(struct soap *soap, struct swad__course *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToswad__course); - if (soap_out_PointerToswad__course(soap, tag?tag:"swad:course", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 struct swad__course ** SOAP_FMAC4 soap_get_PointerToswad__course(struct soap *soap, struct swad__course **p, const char *tag, const char *type) -{ - if ((p = soap_in_PointerToswad__course(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap *soap, char *const*a) -{ -#ifndef WITH_NOIDREF - soap_reference(soap, *a, SOAP_TYPE__QName); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap *soap, const char *tag, int id, char *const*a, const char *type) -{ - return soap_outstring(soap, tag, id, a, type, SOAP_TYPE__QName); -} - -SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap *soap, const char *tag, char **a, const char *type) -{ char **p; - p = soap_instring(soap, tag, a, type, SOAP_TYPE__QName, 2, 0, -1); - return p; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap *soap, char *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE__QName); - if (soap_out__QName(soap, tag?tag:"byte", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap *soap, char **p, const char *tag, const char *type) -{ - if ((p = soap_in__QName(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap *soap, char **a) -{ - (void)soap; /* appease -Wall -Werror */ -#ifdef SOAP_DEFAULT_string - *a = SOAP_DEFAULT_string; -#else - *a = (char *)0; -#endif -} - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap *soap, char *const*a) -{ -#ifndef WITH_NOIDREF - soap_reference(soap, *a, SOAP_TYPE_string); -#endif -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap *soap, const char *tag, int id, char *const*a, const char *type) -{ - return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_string); -} - -SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap *soap, const char *tag, char **a, const char *type) -{ char **p; - p = soap_instring(soap, tag, a, type, SOAP_TYPE_string, 1, 0, -1); - return p; -} - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap *soap, char *const*a, const char *tag, const char *type) -{ - register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_string); - if (soap_out_string(soap, tag?tag:"byte", id, a, type)) - return soap->error; - return soap_putindependent(soap); -} - -SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap *soap, char **p, const char *tag, const char *type) -{ - if ((p = soap_in_string(soap, tag, p, type))) - if (soap_getindependent(soap)) - return NULL; - return p; -} - -#ifdef __cplusplus -} -#endif - -#if defined(__BORLANDC__) -#pragma option pop -#pragma option pop -#endif - -/* End of soapC.c */ diff --git a/soap/soapC.o b/soap/soapC.o deleted file mode 100644 index 6089aa19ddc2d6b3807823e280dacd3370f6b239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 351904 zcmeFa3w&HvwLd;hLrH1vM64R+HE7hJ6%#}VPiG)06G%&;EmjJe(k8Upm+g#}hY-vR zFot0K%T@0Ep%*VGsBq)7)h4METvxj9a35&Sml-zNPV)4whHw^jeP>)$wk^NF21 zclJdO>WD<{AOef5m?ldammG}8d{suXQ&BdlTA7bIc*q_hR~J+SPhRNqWlk)aeI)gV zWbWaG8~cVGeijy*>TneFB?p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Xpe&f9Vv}jM}G3R5& z(|DnMMLe<4<&)P(dwlpL@x*UkewnxrA96#qr}m7?PZ7^7alTwU{hV|A`k&2z=6UCZ z8>9W{7tkY~U*>$^^k_c&d*{={i=EC_ir4<=ym>~n$A887bn)7&&ew~Vs?LYs6zwU# z?tH#@8gF#iD4ts7@*{s9?Wz9V`E2n@@S!^O+hXzbTIcrlNSo&ZeDF-^hqsES-gP}Q z#XWdMyaL}So(z77d;QjQb9A|R_*n5WyeOUsKIErB%TgFT&R9a-x^(R0X|;53ZEmM3Vv9A{kB}(gC~m7{tA4Uc=DgFr%gN$ zpDSL5SH%-}BTnDjqRY*~o5f4;3F1DyB%TRAG^u`DDPDv(+#X$S4L)2v{gLajuPblf z|Kal`Uxjyxr-BbJ~NCy9ITf_MeK zNIdy(*RxJM4zO8=g?EUT;OoVGcxp~`xtZWYwCcAp;zjs$@fv)w zc)Hv5*!KrE@Bi?@cSV<5g|~{QK65=Y#XWdMyaL}Sp8VYPH2pHV+&p}&co|+4PXr$V zR=+J1&%(RKOYk9gN0;lv^WvG{Lo@2P+2Tcbr+5v%Njx2V_*ngxp4;=s=Jz2M;N!)s z@HyhCFI~@aaSxujC)!_u4--!YA8uB^wTb89bH&T>s<`_uMk3MoSJCBWd)6?KXcjNQ zCy4v-l6Yo|U{9?d|HX^&hI^ySt-*(jr-Khsso(7TJe&7__2D-1t0!azYP;l2Oqvszh%Yq@M+>@cvU=|bUl6N z_tb43e*xYoUW5-3FTqEOSK&qREIwCbnRo@>C0>QE7q7t+4@AfB!yCm@_}q^1;wAY1 E1AC$5O#lD@ diff --git a/soap/soapH.h b/soap/soapH.h deleted file mode 100644 index 493ef794..00000000 --- a/soap/soapH.h +++ /dev/null @@ -1,2404 +0,0 @@ -/* soapH.h - Generated by gSOAP 2.8.18 from swad_web_service.h - -Copyright(C) 2000-2014, Robert van Engelen, Genivia Inc. All Rights Reserved. -The generated code is released under one of the following licenses: -GPL or Genivia's license for commercial use. -This program is released under the GPL with the additional exemption that -compiling, linking, and/or using OpenSSL is allowed. -*/ - -#ifndef soapH_H -#define soapH_H -#include "soapStub.h" -#ifdef __cplusplus -extern "C" { -#endif -#ifndef WITH_NOIDREF -SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap*, const void*, int); -SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap*); -SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap*); -#endif -SOAP_FMAC3 void *SOAP_FMAC4 soap_getelement(struct soap*, int*); -SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap*, const void*, const char*, int, int); -SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap*); - -SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap); - -#ifndef SOAP_TYPE_byte -#define SOAP_TYPE_byte (3) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap*, char *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap*, const char*, int, const char *, const char*); -SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap*, const char*, char *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap*, const char *, const char*, const char*); - -#ifndef soap_write_byte -#define soap_write_byte(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_byte(soap, data),0) || soap_put_byte(soap, data, "byte", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap*, char *, const char*, const char*); - -#ifndef soap_read_byte -#define soap_read_byte(soap, data) ( soap_begin_recv(soap) || !soap_get_byte(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_int -#define SOAP_TYPE_int (1) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap*, int *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap*, const char*, int, const int *, const char*); -SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap*, const char*, int *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap*, const int *, const char*, const char*); - -#ifndef soap_write_int -#define soap_write_int(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_int(soap, data),0) || soap_put_int(soap, data, "int", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap*, int *, const char*, const char*); - -#ifndef soap_read_int -#define soap_read_int(soap, data) ( soap_begin_recv(soap) || !soap_get_int(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_long -#define SOAP_TYPE_long (17) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_long(struct soap*, long *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_long(struct soap*, const char*, int, const long *, const char*); -SOAP_FMAC3 long * SOAP_FMAC4 soap_in_long(struct soap*, const char*, long *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_long(struct soap*, const long *, const char*, const char*); - -#ifndef soap_write_long -#define soap_write_long(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_long(soap, data),0) || soap_put_long(soap, data, "long", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 long * SOAP_FMAC4 soap_get_long(struct soap*, long *, const char*, const char*); - -#ifndef soap_read_long -#define soap_read_long(soap, data) ( soap_begin_recv(soap) || !soap_get_long(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Fault -#define SOAP_TYPE_SOAP_ENV__Fault (140) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap*, const char*, int, const struct SOAP_ENV__Fault *, const char*); -SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap*, const char*, struct SOAP_ENV__Fault *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *, const char*, const char*); - -#ifndef soap_write_SOAP_ENV__Fault -#define soap_write_SOAP_ENV__Fault(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Fault(soap, data),0) || soap_put_SOAP_ENV__Fault(soap, data, "SOAP-ENV:Fault", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *, const char*, const char*); - -#ifndef soap_read_SOAP_ENV__Fault -#define soap_read_SOAP_ENV__Fault(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Fault(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Reason -#define SOAP_TYPE_SOAP_ENV__Reason (139) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap*, const char*, int, const struct SOAP_ENV__Reason *, const char*); -SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *, const char*, const char*); - -#ifndef soap_write_SOAP_ENV__Reason -#define soap_write_SOAP_ENV__Reason(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Reason(soap, data),0) || soap_put_SOAP_ENV__Reason(soap, data, "SOAP-ENV:Reason", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *, const char*, const char*); - -#ifndef soap_read_SOAP_ENV__Reason -#define soap_read_SOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Detail -#define SOAP_TYPE_SOAP_ENV__Detail (136) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap*, const char*, int, const struct SOAP_ENV__Detail *, const char*); -SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *, const char*, const char*); - -#ifndef soap_write_SOAP_ENV__Detail -#define soap_write_SOAP_ENV__Detail(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Detail(soap, data),0) || soap_put_SOAP_ENV__Detail(soap, data, "SOAP-ENV:Detail", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *, const char*, const char*); - -#ifndef soap_read_SOAP_ENV__Detail -#define soap_read_SOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Code -#define SOAP_TYPE_SOAP_ENV__Code (134) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap*, const char*, int, const struct SOAP_ENV__Code *, const char*); -SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *, const char*, const char*); - -#ifndef soap_write_SOAP_ENV__Code -#define soap_write_SOAP_ENV__Code(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Code(soap, data),0) || soap_put_SOAP_ENV__Code(soap, data, "SOAP-ENV:Code", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *, const char*, const char*); - -#ifndef soap_read_SOAP_ENV__Code -#define soap_read_SOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Header -#define SOAP_TYPE_SOAP_ENV__Header (133) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap*, const char*, int, const struct SOAP_ENV__Header *, const char*); -SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap*, const char*, struct SOAP_ENV__Header *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *, const char*, const char*); - -#ifndef soap_write_SOAP_ENV__Header -#define soap_write_SOAP_ENV__Header(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Header(soap, data),0) || soap_put_SOAP_ENV__Header(soap, data, "SOAP-ENV:Header", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *, const char*, const char*); - -#ifndef soap_read_SOAP_ENV__Header -#define soap_read_SOAP_ENV__Header(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Header(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef SOAP_TYPE_swad__sendMessage -#define SOAP_TYPE_swad__sendMessage (132) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMessage(struct soap*, struct swad__sendMessage *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMessage(struct soap*, const struct swad__sendMessage *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMessage(struct soap*, const char*, int, const struct swad__sendMessage *, const char*); -SOAP_FMAC3 struct swad__sendMessage * SOAP_FMAC4 soap_in_swad__sendMessage(struct soap*, const char*, struct swad__sendMessage *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMessage(struct soap*, const struct swad__sendMessage *, const char*, const char*); - -#ifndef soap_write_swad__sendMessage -#define soap_write_swad__sendMessage(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendMessage(soap, data),0) || soap_put_swad__sendMessage(soap, data, "swad:sendMessage", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendMessage * SOAP_FMAC4 soap_get_swad__sendMessage(struct soap*, struct swad__sendMessage *, const char*, const char*); - -#ifndef soap_read_swad__sendMessage -#define soap_read_swad__sendMessage(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendMessage(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendNotice -#define SOAP_TYPE_swad__sendNotice (129) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendNotice(struct soap*, struct swad__sendNotice *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendNotice(struct soap*, const struct swad__sendNotice *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendNotice(struct soap*, const char*, int, const struct swad__sendNotice *, const char*); -SOAP_FMAC3 struct swad__sendNotice * SOAP_FMAC4 soap_in_swad__sendNotice(struct soap*, const char*, struct swad__sendNotice *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendNotice(struct soap*, const struct swad__sendNotice *, const char*, const char*); - -#ifndef soap_write_swad__sendNotice -#define soap_write_swad__sendNotice(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendNotice(soap, data),0) || soap_put_swad__sendNotice(soap, data, "swad:sendNotice", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendNotice * SOAP_FMAC4 soap_get_swad__sendNotice(struct soap*, struct swad__sendNotice *, const char*, const char*); - -#ifndef soap_read_swad__sendNotice -#define soap_read_swad__sendNotice(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendNotice(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__markNotificationsAsRead -#define SOAP_TYPE_swad__markNotificationsAsRead (126) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__markNotificationsAsRead(struct soap*, struct swad__markNotificationsAsRead *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__markNotificationsAsRead(struct soap*, const struct swad__markNotificationsAsRead *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__markNotificationsAsRead(struct soap*, const char*, int, const struct swad__markNotificationsAsRead *, const char*); -SOAP_FMAC3 struct swad__markNotificationsAsRead * SOAP_FMAC4 soap_in_swad__markNotificationsAsRead(struct soap*, const char*, struct swad__markNotificationsAsRead *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__markNotificationsAsRead(struct soap*, const struct swad__markNotificationsAsRead *, const char*, const char*); - -#ifndef soap_write_swad__markNotificationsAsRead -#define soap_write_swad__markNotificationsAsRead(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__markNotificationsAsRead(soap, data),0) || soap_put_swad__markNotificationsAsRead(soap, data, "swad:markNotificationsAsRead", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__markNotificationsAsRead * SOAP_FMAC4 soap_get_swad__markNotificationsAsRead(struct soap*, struct swad__markNotificationsAsRead *, const char*, const char*); - -#ifndef soap_read_swad__markNotificationsAsRead -#define soap_read_swad__markNotificationsAsRead(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__markNotificationsAsRead(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getNotifications -#define SOAP_TYPE_swad__getNotifications (123) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNotifications(struct soap*, struct swad__getNotifications *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNotifications(struct soap*, const struct swad__getNotifications *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNotifications(struct soap*, const char*, int, const struct swad__getNotifications *, const char*); -SOAP_FMAC3 struct swad__getNotifications * SOAP_FMAC4 soap_in_swad__getNotifications(struct soap*, const char*, struct swad__getNotifications *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNotifications(struct soap*, const struct swad__getNotifications *, const char*, const char*); - -#ifndef soap_write_swad__getNotifications -#define soap_write_swad__getNotifications(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getNotifications(soap, data),0) || soap_put_swad__getNotifications(soap, data, "swad:getNotifications", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getNotifications * SOAP_FMAC4 soap_get_swad__getNotifications(struct soap*, struct swad__getNotifications *, const char*, const char*); - -#ifndef soap_read_swad__getNotifications -#define soap_read_swad__getNotifications(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getNotifications(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendAttendanceUsers -#define SOAP_TYPE_swad__sendAttendanceUsers (120) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceUsers(struct soap*, struct swad__sendAttendanceUsers *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceUsers(struct soap*, const struct swad__sendAttendanceUsers *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceUsers(struct soap*, const char*, int, const struct swad__sendAttendanceUsers *, const char*); -SOAP_FMAC3 struct swad__sendAttendanceUsers * SOAP_FMAC4 soap_in_swad__sendAttendanceUsers(struct soap*, const char*, struct swad__sendAttendanceUsers *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceUsers(struct soap*, const struct swad__sendAttendanceUsers *, const char*, const char*); - -#ifndef soap_write_swad__sendAttendanceUsers -#define soap_write_swad__sendAttendanceUsers(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendAttendanceUsers(soap, data),0) || soap_put_swad__sendAttendanceUsers(soap, data, "swad:sendAttendanceUsers", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendAttendanceUsers * SOAP_FMAC4 soap_get_swad__sendAttendanceUsers(struct soap*, struct swad__sendAttendanceUsers *, const char*, const char*); - -#ifndef soap_read_swad__sendAttendanceUsers -#define soap_read_swad__sendAttendanceUsers(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendAttendanceUsers(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getAttendanceUsers -#define SOAP_TYPE_swad__getAttendanceUsers (117) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceUsers(struct soap*, struct swad__getAttendanceUsers *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceUsers(struct soap*, const struct swad__getAttendanceUsers *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceUsers(struct soap*, const char*, int, const struct swad__getAttendanceUsers *, const char*); -SOAP_FMAC3 struct swad__getAttendanceUsers * SOAP_FMAC4 soap_in_swad__getAttendanceUsers(struct soap*, const char*, struct swad__getAttendanceUsers *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceUsers(struct soap*, const struct swad__getAttendanceUsers *, const char*, const char*); - -#ifndef soap_write_swad__getAttendanceUsers -#define soap_write_swad__getAttendanceUsers(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getAttendanceUsers(soap, data),0) || soap_put_swad__getAttendanceUsers(soap, data, "swad:getAttendanceUsers", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getAttendanceUsers * SOAP_FMAC4 soap_get_swad__getAttendanceUsers(struct soap*, struct swad__getAttendanceUsers *, const char*, const char*); - -#ifndef soap_read_swad__getAttendanceUsers -#define soap_read_swad__getAttendanceUsers(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getAttendanceUsers(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendAttendanceEvent -#define SOAP_TYPE_swad__sendAttendanceEvent (114) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceEvent(struct soap*, struct swad__sendAttendanceEvent *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceEvent(struct soap*, const struct swad__sendAttendanceEvent *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceEvent(struct soap*, const char*, int, const struct swad__sendAttendanceEvent *, const char*); -SOAP_FMAC3 struct swad__sendAttendanceEvent * SOAP_FMAC4 soap_in_swad__sendAttendanceEvent(struct soap*, const char*, struct swad__sendAttendanceEvent *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceEvent(struct soap*, const struct swad__sendAttendanceEvent *, const char*, const char*); - -#ifndef soap_write_swad__sendAttendanceEvent -#define soap_write_swad__sendAttendanceEvent(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendAttendanceEvent(soap, data),0) || soap_put_swad__sendAttendanceEvent(soap, data, "swad:sendAttendanceEvent", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendAttendanceEvent * SOAP_FMAC4 soap_get_swad__sendAttendanceEvent(struct soap*, struct swad__sendAttendanceEvent *, const char*, const char*); - -#ifndef soap_read_swad__sendAttendanceEvent -#define soap_read_swad__sendAttendanceEvent(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendAttendanceEvent(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getAttendanceEvents -#define SOAP_TYPE_swad__getAttendanceEvents (111) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceEvents(struct soap*, struct swad__getAttendanceEvents *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceEvents(struct soap*, const struct swad__getAttendanceEvents *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceEvents(struct soap*, const char*, int, const struct swad__getAttendanceEvents *, const char*); -SOAP_FMAC3 struct swad__getAttendanceEvents * SOAP_FMAC4 soap_in_swad__getAttendanceEvents(struct soap*, const char*, struct swad__getAttendanceEvents *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceEvents(struct soap*, const struct swad__getAttendanceEvents *, const char*, const char*); - -#ifndef soap_write_swad__getAttendanceEvents -#define soap_write_swad__getAttendanceEvents(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getAttendanceEvents(soap, data),0) || soap_put_swad__getAttendanceEvents(soap, data, "swad:getAttendanceEvents", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getAttendanceEvents * SOAP_FMAC4 soap_get_swad__getAttendanceEvents(struct soap*, struct swad__getAttendanceEvents *, const char*, const char*); - -#ifndef soap_read_swad__getAttendanceEvents -#define soap_read_swad__getAttendanceEvents(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getAttendanceEvents(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getUsers -#define SOAP_TYPE_swad__getUsers (108) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getUsers(struct soap*, struct swad__getUsers *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getUsers(struct soap*, const struct swad__getUsers *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getUsers(struct soap*, const char*, int, const struct swad__getUsers *, const char*); -SOAP_FMAC3 struct swad__getUsers * SOAP_FMAC4 soap_in_swad__getUsers(struct soap*, const char*, struct swad__getUsers *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getUsers(struct soap*, const struct swad__getUsers *, const char*, const char*); - -#ifndef soap_write_swad__getUsers -#define soap_write_swad__getUsers(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getUsers(soap, data),0) || soap_put_swad__getUsers(soap, data, "swad:getUsers", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getUsers * SOAP_FMAC4 soap_get_swad__getUsers(struct soap*, struct swad__getUsers *, const char*, const char*); - -#ifndef soap_read_swad__getUsers -#define soap_read_swad__getUsers(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getUsers(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getTests -#define SOAP_TYPE_swad__getTests (105) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTests(struct soap*, struct swad__getTests *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTests(struct soap*, const struct swad__getTests *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTests(struct soap*, const char*, int, const struct swad__getTests *, const char*); -SOAP_FMAC3 struct swad__getTests * SOAP_FMAC4 soap_in_swad__getTests(struct soap*, const char*, struct swad__getTests *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTests(struct soap*, const struct swad__getTests *, const char*, const char*); - -#ifndef soap_write_swad__getTests -#define soap_write_swad__getTests(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getTests(soap, data),0) || soap_put_swad__getTests(soap, data, "swad:getTests", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getTests * SOAP_FMAC4 soap_get_swad__getTests(struct soap*, struct swad__getTests *, const char*, const char*); - -#ifndef soap_read_swad__getTests -#define soap_read_swad__getTests(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getTests(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getTestConfig -#define SOAP_TYPE_swad__getTestConfig (102) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTestConfig(struct soap*, struct swad__getTestConfig *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTestConfig(struct soap*, const struct swad__getTestConfig *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTestConfig(struct soap*, const char*, int, const struct swad__getTestConfig *, const char*); -SOAP_FMAC3 struct swad__getTestConfig * SOAP_FMAC4 soap_in_swad__getTestConfig(struct soap*, const char*, struct swad__getTestConfig *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTestConfig(struct soap*, const struct swad__getTestConfig *, const char*, const char*); - -#ifndef soap_write_swad__getTestConfig -#define soap_write_swad__getTestConfig(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getTestConfig(soap, data),0) || soap_put_swad__getTestConfig(soap, data, "swad:getTestConfig", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getTestConfig * SOAP_FMAC4 soap_get_swad__getTestConfig(struct soap*, struct swad__getTestConfig *, const char*, const char*); - -#ifndef soap_read_swad__getTestConfig -#define soap_read_swad__getTestConfig(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getTestConfig(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getMarks -#define SOAP_TYPE_swad__getMarks (99) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getMarks(struct soap*, struct swad__getMarks *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getMarks(struct soap*, const struct swad__getMarks *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getMarks(struct soap*, const char*, int, const struct swad__getMarks *, const char*); -SOAP_FMAC3 struct swad__getMarks * SOAP_FMAC4 soap_in_swad__getMarks(struct soap*, const char*, struct swad__getMarks *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getMarks(struct soap*, const struct swad__getMarks *, const char*, const char*); - -#ifndef soap_write_swad__getMarks -#define soap_write_swad__getMarks(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getMarks(soap, data),0) || soap_put_swad__getMarks(soap, data, "swad:getMarks", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getMarks * SOAP_FMAC4 soap_get_swad__getMarks(struct soap*, struct swad__getMarks *, const char*, const char*); - -#ifndef soap_read_swad__getMarks -#define soap_read_swad__getMarks(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getMarks(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getFile -#define SOAP_TYPE_swad__getFile (96) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getFile(struct soap*, struct swad__getFile *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getFile(struct soap*, const struct swad__getFile *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getFile(struct soap*, const char*, int, const struct swad__getFile *, const char*); -SOAP_FMAC3 struct swad__getFile * SOAP_FMAC4 soap_in_swad__getFile(struct soap*, const char*, struct swad__getFile *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getFile(struct soap*, const struct swad__getFile *, const char*, const char*); - -#ifndef soap_write_swad__getFile -#define soap_write_swad__getFile(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getFile(soap, data),0) || soap_put_swad__getFile(soap, data, "swad:getFile", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getFile * SOAP_FMAC4 soap_get_swad__getFile(struct soap*, struct swad__getFile *, const char*, const char*); - -#ifndef soap_read_swad__getFile -#define soap_read_swad__getFile(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getFile(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getDirectoryTree -#define SOAP_TYPE_swad__getDirectoryTree (93) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getDirectoryTree(struct soap*, struct swad__getDirectoryTree *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getDirectoryTree(struct soap*, const struct swad__getDirectoryTree *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getDirectoryTree(struct soap*, const char*, int, const struct swad__getDirectoryTree *, const char*); -SOAP_FMAC3 struct swad__getDirectoryTree * SOAP_FMAC4 soap_in_swad__getDirectoryTree(struct soap*, const char*, struct swad__getDirectoryTree *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getDirectoryTree(struct soap*, const struct swad__getDirectoryTree *, const char*, const char*); - -#ifndef soap_write_swad__getDirectoryTree -#define soap_write_swad__getDirectoryTree(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getDirectoryTree(soap, data),0) || soap_put_swad__getDirectoryTree(soap, data, "swad:getDirectoryTree", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getDirectoryTree * SOAP_FMAC4 soap_get_swad__getDirectoryTree(struct soap*, struct swad__getDirectoryTree *, const char*, const char*); - -#ifndef soap_read_swad__getDirectoryTree -#define soap_read_swad__getDirectoryTree(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getDirectoryTree(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendMyGroups -#define SOAP_TYPE_swad__sendMyGroups (90) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMyGroups(struct soap*, struct swad__sendMyGroups *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMyGroups(struct soap*, const struct swad__sendMyGroups *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMyGroups(struct soap*, const char*, int, const struct swad__sendMyGroups *, const char*); -SOAP_FMAC3 struct swad__sendMyGroups * SOAP_FMAC4 soap_in_swad__sendMyGroups(struct soap*, const char*, struct swad__sendMyGroups *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMyGroups(struct soap*, const struct swad__sendMyGroups *, const char*, const char*); - -#ifndef soap_write_swad__sendMyGroups -#define soap_write_swad__sendMyGroups(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendMyGroups(soap, data),0) || soap_put_swad__sendMyGroups(soap, data, "swad:sendMyGroups", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendMyGroups * SOAP_FMAC4 soap_get_swad__sendMyGroups(struct soap*, struct swad__sendMyGroups *, const char*, const char*); - -#ifndef soap_read_swad__sendMyGroups -#define soap_read_swad__sendMyGroups(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendMyGroups(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getGroups -#define SOAP_TYPE_swad__getGroups (87) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroups(struct soap*, struct swad__getGroups *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroups(struct soap*, const struct swad__getGroups *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroups(struct soap*, const char*, int, const struct swad__getGroups *, const char*); -SOAP_FMAC3 struct swad__getGroups * SOAP_FMAC4 soap_in_swad__getGroups(struct soap*, const char*, struct swad__getGroups *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroups(struct soap*, const struct swad__getGroups *, const char*, const char*); - -#ifndef soap_write_swad__getGroups -#define soap_write_swad__getGroups(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getGroups(soap, data),0) || soap_put_swad__getGroups(soap, data, "swad:getGroups", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getGroups * SOAP_FMAC4 soap_get_swad__getGroups(struct soap*, struct swad__getGroups *, const char*, const char*); - -#ifndef soap_read_swad__getGroups -#define soap_read_swad__getGroups(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getGroups(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getGroupTypes -#define SOAP_TYPE_swad__getGroupTypes (84) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroupTypes(struct soap*, struct swad__getGroupTypes *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroupTypes(struct soap*, const struct swad__getGroupTypes *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroupTypes(struct soap*, const char*, int, const struct swad__getGroupTypes *, const char*); -SOAP_FMAC3 struct swad__getGroupTypes * SOAP_FMAC4 soap_in_swad__getGroupTypes(struct soap*, const char*, struct swad__getGroupTypes *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroupTypes(struct soap*, const struct swad__getGroupTypes *, const char*, const char*); - -#ifndef soap_write_swad__getGroupTypes -#define soap_write_swad__getGroupTypes(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getGroupTypes(soap, data),0) || soap_put_swad__getGroupTypes(soap, data, "swad:getGroupTypes", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getGroupTypes * SOAP_FMAC4 soap_get_swad__getGroupTypes(struct soap*, struct swad__getGroupTypes *, const char*, const char*); - -#ifndef soap_read_swad__getGroupTypes -#define soap_read_swad__getGroupTypes(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getGroupTypes(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getCourseInfo -#define SOAP_TYPE_swad__getCourseInfo (81) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCourseInfo(struct soap*, struct swad__getCourseInfo *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCourseInfo(struct soap*, const struct swad__getCourseInfo *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCourseInfo(struct soap*, const char*, int, const struct swad__getCourseInfo *, const char*); -SOAP_FMAC3 struct swad__getCourseInfo * SOAP_FMAC4 soap_in_swad__getCourseInfo(struct soap*, const char*, struct swad__getCourseInfo *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCourseInfo(struct soap*, const struct swad__getCourseInfo *, const char*, const char*); - -#ifndef soap_write_swad__getCourseInfo -#define soap_write_swad__getCourseInfo(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getCourseInfo(soap, data),0) || soap_put_swad__getCourseInfo(soap, data, "swad:getCourseInfo", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getCourseInfo * SOAP_FMAC4 soap_get_swad__getCourseInfo(struct soap*, struct swad__getCourseInfo *, const char*, const char*); - -#ifndef soap_read_swad__getCourseInfo -#define soap_read_swad__getCourseInfo(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getCourseInfo(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getCourses -#define SOAP_TYPE_swad__getCourses (78) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCourses(struct soap*, struct swad__getCourses *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCourses(struct soap*, const struct swad__getCourses *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCourses(struct soap*, const char*, int, const struct swad__getCourses *, const char*); -SOAP_FMAC3 struct swad__getCourses * SOAP_FMAC4 soap_in_swad__getCourses(struct soap*, const char*, struct swad__getCourses *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCourses(struct soap*, const struct swad__getCourses *, const char*, const char*); - -#ifndef soap_write_swad__getCourses -#define soap_write_swad__getCourses(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getCourses(soap, data),0) || soap_put_swad__getCourses(soap, data, "swad:getCourses", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getCourses * SOAP_FMAC4 soap_get_swad__getCourses(struct soap*, struct swad__getCourses *, const char*, const char*); - -#ifndef soap_read_swad__getCourses -#define soap_read_swad__getCourses(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getCourses(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getNewPassword -#define SOAP_TYPE_swad__getNewPassword (75) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNewPassword(struct soap*, struct swad__getNewPassword *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNewPassword(struct soap*, const struct swad__getNewPassword *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNewPassword(struct soap*, const char*, int, const struct swad__getNewPassword *, const char*); -SOAP_FMAC3 struct swad__getNewPassword * SOAP_FMAC4 soap_in_swad__getNewPassword(struct soap*, const char*, struct swad__getNewPassword *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNewPassword(struct soap*, const struct swad__getNewPassword *, const char*, const char*); - -#ifndef soap_write_swad__getNewPassword -#define soap_write_swad__getNewPassword(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getNewPassword(soap, data),0) || soap_put_swad__getNewPassword(soap, data, "swad:getNewPassword", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getNewPassword * SOAP_FMAC4 soap_get_swad__getNewPassword(struct soap*, struct swad__getNewPassword *, const char*, const char*); - -#ifndef soap_read_swad__getNewPassword -#define soap_read_swad__getNewPassword(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getNewPassword(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__loginBySessionKey -#define SOAP_TYPE_swad__loginBySessionKey (72) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginBySessionKey(struct soap*, struct swad__loginBySessionKey *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginBySessionKey(struct soap*, const struct swad__loginBySessionKey *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginBySessionKey(struct soap*, const char*, int, const struct swad__loginBySessionKey *, const char*); -SOAP_FMAC3 struct swad__loginBySessionKey * SOAP_FMAC4 soap_in_swad__loginBySessionKey(struct soap*, const char*, struct swad__loginBySessionKey *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginBySessionKey(struct soap*, const struct swad__loginBySessionKey *, const char*, const char*); - -#ifndef soap_write_swad__loginBySessionKey -#define soap_write_swad__loginBySessionKey(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__loginBySessionKey(soap, data),0) || soap_put_swad__loginBySessionKey(soap, data, "swad:loginBySessionKey", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__loginBySessionKey * SOAP_FMAC4 soap_get_swad__loginBySessionKey(struct soap*, struct swad__loginBySessionKey *, const char*, const char*); - -#ifndef soap_read_swad__loginBySessionKey -#define soap_read_swad__loginBySessionKey(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__loginBySessionKey(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__loginByUserPasswordKey -#define SOAP_TYPE_swad__loginByUserPasswordKey (69) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginByUserPasswordKey(struct soap*, struct swad__loginByUserPasswordKey *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginByUserPasswordKey(struct soap*, const struct swad__loginByUserPasswordKey *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginByUserPasswordKey(struct soap*, const char*, int, const struct swad__loginByUserPasswordKey *, const char*); -SOAP_FMAC3 struct swad__loginByUserPasswordKey * SOAP_FMAC4 soap_in_swad__loginByUserPasswordKey(struct soap*, const char*, struct swad__loginByUserPasswordKey *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginByUserPasswordKey(struct soap*, const struct swad__loginByUserPasswordKey *, const char*, const char*); - -#ifndef soap_write_swad__loginByUserPasswordKey -#define soap_write_swad__loginByUserPasswordKey(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__loginByUserPasswordKey(soap, data),0) || soap_put_swad__loginByUserPasswordKey(soap, data, "swad:loginByUserPasswordKey", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__loginByUserPasswordKey * SOAP_FMAC4 soap_get_swad__loginByUserPasswordKey(struct soap*, struct swad__loginByUserPasswordKey *, const char*, const char*); - -#ifndef soap_read_swad__loginByUserPasswordKey -#define soap_read_swad__loginByUserPasswordKey(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__loginByUserPasswordKey(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__createAccount -#define SOAP_TYPE_swad__createAccount (66) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__createAccount(struct soap*, struct swad__createAccount *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__createAccount(struct soap*, const struct swad__createAccount *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__createAccount(struct soap*, const char*, int, const struct swad__createAccount *, const char*); -SOAP_FMAC3 struct swad__createAccount * SOAP_FMAC4 soap_in_swad__createAccount(struct soap*, const char*, struct swad__createAccount *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__createAccount(struct soap*, const struct swad__createAccount *, const char*, const char*); - -#ifndef soap_write_swad__createAccount -#define soap_write_swad__createAccount(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__createAccount(soap, data),0) || soap_put_swad__createAccount(soap, data, "swad:createAccount", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__createAccount * SOAP_FMAC4 soap_get_swad__createAccount(struct soap*, struct swad__createAccount *, const char*, const char*); - -#ifndef soap_read_swad__createAccount -#define soap_read_swad__createAccount(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__createAccount(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendMessageOutput -#define SOAP_TYPE_swad__sendMessageOutput (63) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMessageOutput(struct soap*, struct swad__sendMessageOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMessageOutput(struct soap*, const struct swad__sendMessageOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMessageOutput(struct soap*, const char*, int, const struct swad__sendMessageOutput *, const char*); -SOAP_FMAC3 struct swad__sendMessageOutput * SOAP_FMAC4 soap_in_swad__sendMessageOutput(struct soap*, const char*, struct swad__sendMessageOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMessageOutput(struct soap*, const struct swad__sendMessageOutput *, const char*, const char*); - -#ifndef soap_write_swad__sendMessageOutput -#define soap_write_swad__sendMessageOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendMessageOutput(soap, data),0) || soap_put_swad__sendMessageOutput(soap, data, "swad:sendMessageOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendMessageOutput * SOAP_FMAC4 soap_get_swad__sendMessageOutput(struct soap*, struct swad__sendMessageOutput *, const char*, const char*); - -#ifndef soap_read_swad__sendMessageOutput -#define soap_read_swad__sendMessageOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendMessageOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendNoticeOutput -#define SOAP_TYPE_swad__sendNoticeOutput (62) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendNoticeOutput(struct soap*, struct swad__sendNoticeOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendNoticeOutput(struct soap*, const struct swad__sendNoticeOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendNoticeOutput(struct soap*, const char*, int, const struct swad__sendNoticeOutput *, const char*); -SOAP_FMAC3 struct swad__sendNoticeOutput * SOAP_FMAC4 soap_in_swad__sendNoticeOutput(struct soap*, const char*, struct swad__sendNoticeOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendNoticeOutput(struct soap*, const struct swad__sendNoticeOutput *, const char*, const char*); - -#ifndef soap_write_swad__sendNoticeOutput -#define soap_write_swad__sendNoticeOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendNoticeOutput(soap, data),0) || soap_put_swad__sendNoticeOutput(soap, data, "swad:sendNoticeOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendNoticeOutput * SOAP_FMAC4 soap_get_swad__sendNoticeOutput(struct soap*, struct swad__sendNoticeOutput *, const char*, const char*); - -#ifndef soap_read_swad__sendNoticeOutput -#define soap_read_swad__sendNoticeOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendNoticeOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getMarksOutput -#define SOAP_TYPE_swad__getMarksOutput (61) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getMarksOutput(struct soap*, struct swad__getMarksOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getMarksOutput(struct soap*, const struct swad__getMarksOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getMarksOutput(struct soap*, const char*, int, const struct swad__getMarksOutput *, const char*); -SOAP_FMAC3 struct swad__getMarksOutput * SOAP_FMAC4 soap_in_swad__getMarksOutput(struct soap*, const char*, struct swad__getMarksOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getMarksOutput(struct soap*, const struct swad__getMarksOutput *, const char*, const char*); - -#ifndef soap_write_swad__getMarksOutput -#define soap_write_swad__getMarksOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getMarksOutput(soap, data),0) || soap_put_swad__getMarksOutput(soap, data, "swad:getMarksOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getMarksOutput * SOAP_FMAC4 soap_get_swad__getMarksOutput(struct soap*, struct swad__getMarksOutput *, const char*, const char*); - -#ifndef soap_read_swad__getMarksOutput -#define soap_read_swad__getMarksOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getMarksOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getFileOutput -#define SOAP_TYPE_swad__getFileOutput (60) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getFileOutput(struct soap*, struct swad__getFileOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getFileOutput(struct soap*, const struct swad__getFileOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getFileOutput(struct soap*, const char*, int, const struct swad__getFileOutput *, const char*); -SOAP_FMAC3 struct swad__getFileOutput * SOAP_FMAC4 soap_in_swad__getFileOutput(struct soap*, const char*, struct swad__getFileOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getFileOutput(struct soap*, const struct swad__getFileOutput *, const char*, const char*); - -#ifndef soap_write_swad__getFileOutput -#define soap_write_swad__getFileOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getFileOutput(soap, data),0) || soap_put_swad__getFileOutput(soap, data, "swad:getFileOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getFileOutput * SOAP_FMAC4 soap_get_swad__getFileOutput(struct soap*, struct swad__getFileOutput *, const char*, const char*); - -#ifndef soap_read_swad__getFileOutput -#define soap_read_swad__getFileOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getFileOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getDirectoryTreeOutput -#define SOAP_TYPE_swad__getDirectoryTreeOutput (59) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getDirectoryTreeOutput(struct soap*, struct swad__getDirectoryTreeOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getDirectoryTreeOutput(struct soap*, const struct swad__getDirectoryTreeOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getDirectoryTreeOutput(struct soap*, const char*, int, const struct swad__getDirectoryTreeOutput *, const char*); -SOAP_FMAC3 struct swad__getDirectoryTreeOutput * SOAP_FMAC4 soap_in_swad__getDirectoryTreeOutput(struct soap*, const char*, struct swad__getDirectoryTreeOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getDirectoryTreeOutput(struct soap*, const struct swad__getDirectoryTreeOutput *, const char*, const char*); - -#ifndef soap_write_swad__getDirectoryTreeOutput -#define soap_write_swad__getDirectoryTreeOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getDirectoryTreeOutput(soap, data),0) || soap_put_swad__getDirectoryTreeOutput(soap, data, "swad:getDirectoryTreeOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getDirectoryTreeOutput * SOAP_FMAC4 soap_get_swad__getDirectoryTreeOutput(struct soap*, struct swad__getDirectoryTreeOutput *, const char*, const char*); - -#ifndef soap_read_swad__getDirectoryTreeOutput -#define soap_read_swad__getDirectoryTreeOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getDirectoryTreeOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendAttendanceUsersOutput -#define SOAP_TYPE_swad__sendAttendanceUsersOutput (58) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceUsersOutput(struct soap*, struct swad__sendAttendanceUsersOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceUsersOutput(struct soap*, const struct swad__sendAttendanceUsersOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceUsersOutput(struct soap*, const char*, int, const struct swad__sendAttendanceUsersOutput *, const char*); -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput * SOAP_FMAC4 soap_in_swad__sendAttendanceUsersOutput(struct soap*, const char*, struct swad__sendAttendanceUsersOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceUsersOutput(struct soap*, const struct swad__sendAttendanceUsersOutput *, const char*, const char*); - -#ifndef soap_write_swad__sendAttendanceUsersOutput -#define soap_write_swad__sendAttendanceUsersOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendAttendanceUsersOutput(soap, data),0) || soap_put_swad__sendAttendanceUsersOutput(soap, data, "swad:sendAttendanceUsersOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput * SOAP_FMAC4 soap_get_swad__sendAttendanceUsersOutput(struct soap*, struct swad__sendAttendanceUsersOutput *, const char*, const char*); - -#ifndef soap_read_swad__sendAttendanceUsersOutput -#define soap_read_swad__sendAttendanceUsersOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendAttendanceUsersOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getAttendanceUsersOutput -#define SOAP_TYPE_swad__getAttendanceUsersOutput (57) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceUsersOutput(struct soap*, struct swad__getAttendanceUsersOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceUsersOutput(struct soap*, const struct swad__getAttendanceUsersOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceUsersOutput(struct soap*, const char*, int, const struct swad__getAttendanceUsersOutput *, const char*); -SOAP_FMAC3 struct swad__getAttendanceUsersOutput * SOAP_FMAC4 soap_in_swad__getAttendanceUsersOutput(struct soap*, const char*, struct swad__getAttendanceUsersOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceUsersOutput(struct soap*, const struct swad__getAttendanceUsersOutput *, const char*, const char*); - -#ifndef soap_write_swad__getAttendanceUsersOutput -#define soap_write_swad__getAttendanceUsersOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getAttendanceUsersOutput(soap, data),0) || soap_put_swad__getAttendanceUsersOutput(soap, data, "swad:getAttendanceUsersOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getAttendanceUsersOutput * SOAP_FMAC4 soap_get_swad__getAttendanceUsersOutput(struct soap*, struct swad__getAttendanceUsersOutput *, const char*, const char*); - -#ifndef soap_read_swad__getAttendanceUsersOutput -#define soap_read_swad__getAttendanceUsersOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getAttendanceUsersOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__attendanceUsersArray -#define SOAP_TYPE_swad__attendanceUsersArray (55) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceUsersArray(struct soap*, struct swad__attendanceUsersArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceUsersArray(struct soap*, struct swad__attendanceUsersArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceUsersArray(struct soap*, const char*, int, const struct swad__attendanceUsersArray *, const char*); -SOAP_FMAC3 struct swad__attendanceUsersArray * SOAP_FMAC4 soap_in_swad__attendanceUsersArray(struct soap*, const char*, struct swad__attendanceUsersArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceUsersArray(struct soap*, const struct swad__attendanceUsersArray *, const char*, const char*); - -#ifndef soap_write_swad__attendanceUsersArray -#define soap_write_swad__attendanceUsersArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__attendanceUsersArray(soap, data),0) || soap_put_swad__attendanceUsersArray(soap, data, "swad:attendanceUsersArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__attendanceUsersArray * SOAP_FMAC4 soap_get_swad__attendanceUsersArray(struct soap*, struct swad__attendanceUsersArray *, const char*, const char*); - -#ifndef soap_read_swad__attendanceUsersArray -#define soap_read_swad__attendanceUsersArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__attendanceUsersArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__attendanceUser -#define SOAP_TYPE_swad__attendanceUser (54) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceUser(struct soap*, struct swad__attendanceUser *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceUser(struct soap*, const struct swad__attendanceUser *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceUser(struct soap*, const char*, int, const struct swad__attendanceUser *, const char*); -SOAP_FMAC3 struct swad__attendanceUser * SOAP_FMAC4 soap_in_swad__attendanceUser(struct soap*, const char*, struct swad__attendanceUser *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceUser(struct soap*, const struct swad__attendanceUser *, const char*, const char*); - -#ifndef soap_write_swad__attendanceUser -#define soap_write_swad__attendanceUser(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__attendanceUser(soap, data),0) || soap_put_swad__attendanceUser(soap, data, "swad:attendanceUser", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__attendanceUser * SOAP_FMAC4 soap_get_swad__attendanceUser(struct soap*, struct swad__attendanceUser *, const char*, const char*); - -#ifndef soap_read_swad__attendanceUser -#define soap_read_swad__attendanceUser(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__attendanceUser(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendAttendanceEventOutput -#define SOAP_TYPE_swad__sendAttendanceEventOutput (53) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendAttendanceEventOutput(struct soap*, struct swad__sendAttendanceEventOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendAttendanceEventOutput(struct soap*, const struct swad__sendAttendanceEventOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendAttendanceEventOutput(struct soap*, const char*, int, const struct swad__sendAttendanceEventOutput *, const char*); -SOAP_FMAC3 struct swad__sendAttendanceEventOutput * SOAP_FMAC4 soap_in_swad__sendAttendanceEventOutput(struct soap*, const char*, struct swad__sendAttendanceEventOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendAttendanceEventOutput(struct soap*, const struct swad__sendAttendanceEventOutput *, const char*, const char*); - -#ifndef soap_write_swad__sendAttendanceEventOutput -#define soap_write_swad__sendAttendanceEventOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendAttendanceEventOutput(soap, data),0) || soap_put_swad__sendAttendanceEventOutput(soap, data, "swad:sendAttendanceEventOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendAttendanceEventOutput * SOAP_FMAC4 soap_get_swad__sendAttendanceEventOutput(struct soap*, struct swad__sendAttendanceEventOutput *, const char*, const char*); - -#ifndef soap_read_swad__sendAttendanceEventOutput -#define soap_read_swad__sendAttendanceEventOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendAttendanceEventOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getAttendanceEventsOutput -#define SOAP_TYPE_swad__getAttendanceEventsOutput (52) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getAttendanceEventsOutput(struct soap*, struct swad__getAttendanceEventsOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getAttendanceEventsOutput(struct soap*, const struct swad__getAttendanceEventsOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getAttendanceEventsOutput(struct soap*, const char*, int, const struct swad__getAttendanceEventsOutput *, const char*); -SOAP_FMAC3 struct swad__getAttendanceEventsOutput * SOAP_FMAC4 soap_in_swad__getAttendanceEventsOutput(struct soap*, const char*, struct swad__getAttendanceEventsOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getAttendanceEventsOutput(struct soap*, const struct swad__getAttendanceEventsOutput *, const char*, const char*); - -#ifndef soap_write_swad__getAttendanceEventsOutput -#define soap_write_swad__getAttendanceEventsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getAttendanceEventsOutput(soap, data),0) || soap_put_swad__getAttendanceEventsOutput(soap, data, "swad:getAttendanceEventsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getAttendanceEventsOutput * SOAP_FMAC4 soap_get_swad__getAttendanceEventsOutput(struct soap*, struct swad__getAttendanceEventsOutput *, const char*, const char*); - -#ifndef soap_read_swad__getAttendanceEventsOutput -#define soap_read_swad__getAttendanceEventsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getAttendanceEventsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__attendanceEventsArray -#define SOAP_TYPE_swad__attendanceEventsArray (50) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceEventsArray(struct soap*, struct swad__attendanceEventsArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceEventsArray(struct soap*, struct swad__attendanceEventsArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceEventsArray(struct soap*, const char*, int, const struct swad__attendanceEventsArray *, const char*); -SOAP_FMAC3 struct swad__attendanceEventsArray * SOAP_FMAC4 soap_in_swad__attendanceEventsArray(struct soap*, const char*, struct swad__attendanceEventsArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceEventsArray(struct soap*, const struct swad__attendanceEventsArray *, const char*, const char*); - -#ifndef soap_write_swad__attendanceEventsArray -#define soap_write_swad__attendanceEventsArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__attendanceEventsArray(soap, data),0) || soap_put_swad__attendanceEventsArray(soap, data, "swad:attendanceEventsArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__attendanceEventsArray * SOAP_FMAC4 soap_get_swad__attendanceEventsArray(struct soap*, struct swad__attendanceEventsArray *, const char*, const char*); - -#ifndef soap_read_swad__attendanceEventsArray -#define soap_read_swad__attendanceEventsArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__attendanceEventsArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__attendanceEvent -#define SOAP_TYPE_swad__attendanceEvent (49) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__attendanceEvent(struct soap*, struct swad__attendanceEvent *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__attendanceEvent(struct soap*, const struct swad__attendanceEvent *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__attendanceEvent(struct soap*, const char*, int, const struct swad__attendanceEvent *, const char*); -SOAP_FMAC3 struct swad__attendanceEvent * SOAP_FMAC4 soap_in_swad__attendanceEvent(struct soap*, const char*, struct swad__attendanceEvent *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__attendanceEvent(struct soap*, const struct swad__attendanceEvent *, const char*, const char*); - -#ifndef soap_write_swad__attendanceEvent -#define soap_write_swad__attendanceEvent(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__attendanceEvent(soap, data),0) || soap_put_swad__attendanceEvent(soap, data, "swad:attendanceEvent", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__attendanceEvent * SOAP_FMAC4 soap_get_swad__attendanceEvent(struct soap*, struct swad__attendanceEvent *, const char*, const char*); - -#ifndef soap_read_swad__attendanceEvent -#define soap_read_swad__attendanceEvent(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__attendanceEvent(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getUsersOutput -#define SOAP_TYPE_swad__getUsersOutput (48) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getUsersOutput(struct soap*, struct swad__getUsersOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getUsersOutput(struct soap*, const struct swad__getUsersOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getUsersOutput(struct soap*, const char*, int, const struct swad__getUsersOutput *, const char*); -SOAP_FMAC3 struct swad__getUsersOutput * SOAP_FMAC4 soap_in_swad__getUsersOutput(struct soap*, const char*, struct swad__getUsersOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getUsersOutput(struct soap*, const struct swad__getUsersOutput *, const char*, const char*); - -#ifndef soap_write_swad__getUsersOutput -#define soap_write_swad__getUsersOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getUsersOutput(soap, data),0) || soap_put_swad__getUsersOutput(soap, data, "swad:getUsersOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getUsersOutput * SOAP_FMAC4 soap_get_swad__getUsersOutput(struct soap*, struct swad__getUsersOutput *, const char*, const char*); - -#ifndef soap_read_swad__getUsersOutput -#define soap_read_swad__getUsersOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getUsersOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__usersArray -#define SOAP_TYPE_swad__usersArray (46) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__usersArray(struct soap*, struct swad__usersArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__usersArray(struct soap*, struct swad__usersArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__usersArray(struct soap*, const char*, int, const struct swad__usersArray *, const char*); -SOAP_FMAC3 struct swad__usersArray * SOAP_FMAC4 soap_in_swad__usersArray(struct soap*, const char*, struct swad__usersArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__usersArray(struct soap*, const struct swad__usersArray *, const char*, const char*); - -#ifndef soap_write_swad__usersArray -#define soap_write_swad__usersArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__usersArray(soap, data),0) || soap_put_swad__usersArray(soap, data, "swad:usersArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__usersArray * SOAP_FMAC4 soap_get_swad__usersArray(struct soap*, struct swad__usersArray *, const char*, const char*); - -#ifndef soap_read_swad__usersArray -#define soap_read_swad__usersArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__usersArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__user -#define SOAP_TYPE_swad__user (45) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__user(struct soap*, struct swad__user *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__user(struct soap*, const struct swad__user *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__user(struct soap*, const char*, int, const struct swad__user *, const char*); -SOAP_FMAC3 struct swad__user * SOAP_FMAC4 soap_in_swad__user(struct soap*, const char*, struct swad__user *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__user(struct soap*, const struct swad__user *, const char*, const char*); - -#ifndef soap_write_swad__user -#define soap_write_swad__user(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__user(soap, data),0) || soap_put_swad__user(soap, data, "swad:user", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__user * SOAP_FMAC4 soap_get_swad__user(struct soap*, struct swad__user *, const char*, const char*); - -#ifndef soap_read_swad__user -#define soap_read_swad__user(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__user(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getTestsOutput -#define SOAP_TYPE_swad__getTestsOutput (44) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTestsOutput(struct soap*, struct swad__getTestsOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTestsOutput(struct soap*, const struct swad__getTestsOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTestsOutput(struct soap*, const char*, int, const struct swad__getTestsOutput *, const char*); -SOAP_FMAC3 struct swad__getTestsOutput * SOAP_FMAC4 soap_in_swad__getTestsOutput(struct soap*, const char*, struct swad__getTestsOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTestsOutput(struct soap*, const struct swad__getTestsOutput *, const char*, const char*); - -#ifndef soap_write_swad__getTestsOutput -#define soap_write_swad__getTestsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getTestsOutput(soap, data),0) || soap_put_swad__getTestsOutput(soap, data, "swad:getTestsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getTestsOutput * SOAP_FMAC4 soap_get_swad__getTestsOutput(struct soap*, struct swad__getTestsOutput *, const char*, const char*); - -#ifndef soap_read_swad__getTestsOutput -#define soap_read_swad__getTestsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getTestsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__questionTagsArray -#define SOAP_TYPE_swad__questionTagsArray (42) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__questionTagsArray(struct soap*, struct swad__questionTagsArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__questionTagsArray(struct soap*, struct swad__questionTagsArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__questionTagsArray(struct soap*, const char*, int, const struct swad__questionTagsArray *, const char*); -SOAP_FMAC3 struct swad__questionTagsArray * SOAP_FMAC4 soap_in_swad__questionTagsArray(struct soap*, const char*, struct swad__questionTagsArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__questionTagsArray(struct soap*, const struct swad__questionTagsArray *, const char*, const char*); - -#ifndef soap_write_swad__questionTagsArray -#define soap_write_swad__questionTagsArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__questionTagsArray(soap, data),0) || soap_put_swad__questionTagsArray(soap, data, "swad:questionTagsArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__questionTagsArray * SOAP_FMAC4 soap_get_swad__questionTagsArray(struct soap*, struct swad__questionTagsArray *, const char*, const char*); - -#ifndef soap_read_swad__questionTagsArray -#define soap_read_swad__questionTagsArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__questionTagsArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__questionTag -#define SOAP_TYPE_swad__questionTag (41) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__questionTag(struct soap*, struct swad__questionTag *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__questionTag(struct soap*, const struct swad__questionTag *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__questionTag(struct soap*, const char*, int, const struct swad__questionTag *, const char*); -SOAP_FMAC3 struct swad__questionTag * SOAP_FMAC4 soap_in_swad__questionTag(struct soap*, const char*, struct swad__questionTag *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__questionTag(struct soap*, const struct swad__questionTag *, const char*, const char*); - -#ifndef soap_write_swad__questionTag -#define soap_write_swad__questionTag(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__questionTag(soap, data),0) || soap_put_swad__questionTag(soap, data, "swad:questionTag", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__questionTag * SOAP_FMAC4 soap_get_swad__questionTag(struct soap*, struct swad__questionTag *, const char*, const char*); - -#ifndef soap_read_swad__questionTag -#define soap_read_swad__questionTag(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__questionTag(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__answersArray -#define SOAP_TYPE_swad__answersArray (39) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__answersArray(struct soap*, struct swad__answersArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__answersArray(struct soap*, struct swad__answersArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__answersArray(struct soap*, const char*, int, const struct swad__answersArray *, const char*); -SOAP_FMAC3 struct swad__answersArray * SOAP_FMAC4 soap_in_swad__answersArray(struct soap*, const char*, struct swad__answersArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__answersArray(struct soap*, const struct swad__answersArray *, const char*, const char*); - -#ifndef soap_write_swad__answersArray -#define soap_write_swad__answersArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__answersArray(soap, data),0) || soap_put_swad__answersArray(soap, data, "swad:answersArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__answersArray * SOAP_FMAC4 soap_get_swad__answersArray(struct soap*, struct swad__answersArray *, const char*, const char*); - -#ifndef soap_read_swad__answersArray -#define soap_read_swad__answersArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__answersArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__answer -#define SOAP_TYPE_swad__answer (38) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__answer(struct soap*, struct swad__answer *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__answer(struct soap*, const struct swad__answer *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__answer(struct soap*, const char*, int, const struct swad__answer *, const char*); -SOAP_FMAC3 struct swad__answer * SOAP_FMAC4 soap_in_swad__answer(struct soap*, const char*, struct swad__answer *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__answer(struct soap*, const struct swad__answer *, const char*, const char*); - -#ifndef soap_write_swad__answer -#define soap_write_swad__answer(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__answer(soap, data),0) || soap_put_swad__answer(soap, data, "swad:answer", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__answer * SOAP_FMAC4 soap_get_swad__answer(struct soap*, struct swad__answer *, const char*, const char*); - -#ifndef soap_read_swad__answer -#define soap_read_swad__answer(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__answer(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__questionsArray -#define SOAP_TYPE_swad__questionsArray (36) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__questionsArray(struct soap*, struct swad__questionsArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__questionsArray(struct soap*, struct swad__questionsArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__questionsArray(struct soap*, const char*, int, const struct swad__questionsArray *, const char*); -SOAP_FMAC3 struct swad__questionsArray * SOAP_FMAC4 soap_in_swad__questionsArray(struct soap*, const char*, struct swad__questionsArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__questionsArray(struct soap*, const struct swad__questionsArray *, const char*, const char*); - -#ifndef soap_write_swad__questionsArray -#define soap_write_swad__questionsArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__questionsArray(soap, data),0) || soap_put_swad__questionsArray(soap, data, "swad:questionsArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__questionsArray * SOAP_FMAC4 soap_get_swad__questionsArray(struct soap*, struct swad__questionsArray *, const char*, const char*); - -#ifndef soap_read_swad__questionsArray -#define soap_read_swad__questionsArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__questionsArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__question -#define SOAP_TYPE_swad__question (35) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__question(struct soap*, struct swad__question *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__question(struct soap*, const struct swad__question *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__question(struct soap*, const char*, int, const struct swad__question *, const char*); -SOAP_FMAC3 struct swad__question * SOAP_FMAC4 soap_in_swad__question(struct soap*, const char*, struct swad__question *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__question(struct soap*, const struct swad__question *, const char*, const char*); - -#ifndef soap_write_swad__question -#define soap_write_swad__question(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__question(soap, data),0) || soap_put_swad__question(soap, data, "swad:question", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__question * SOAP_FMAC4 soap_get_swad__question(struct soap*, struct swad__question *, const char*, const char*); - -#ifndef soap_read_swad__question -#define soap_read_swad__question(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__question(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__tagsArray -#define SOAP_TYPE_swad__tagsArray (33) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__tagsArray(struct soap*, struct swad__tagsArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__tagsArray(struct soap*, struct swad__tagsArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__tagsArray(struct soap*, const char*, int, const struct swad__tagsArray *, const char*); -SOAP_FMAC3 struct swad__tagsArray * SOAP_FMAC4 soap_in_swad__tagsArray(struct soap*, const char*, struct swad__tagsArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__tagsArray(struct soap*, const struct swad__tagsArray *, const char*, const char*); - -#ifndef soap_write_swad__tagsArray -#define soap_write_swad__tagsArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__tagsArray(soap, data),0) || soap_put_swad__tagsArray(soap, data, "swad:tagsArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__tagsArray * SOAP_FMAC4 soap_get_swad__tagsArray(struct soap*, struct swad__tagsArray *, const char*, const char*); - -#ifndef soap_read_swad__tagsArray -#define soap_read_swad__tagsArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__tagsArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__tag -#define SOAP_TYPE_swad__tag (32) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__tag(struct soap*, struct swad__tag *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__tag(struct soap*, const struct swad__tag *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__tag(struct soap*, const char*, int, const struct swad__tag *, const char*); -SOAP_FMAC3 struct swad__tag * SOAP_FMAC4 soap_in_swad__tag(struct soap*, const char*, struct swad__tag *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__tag(struct soap*, const struct swad__tag *, const char*, const char*); - -#ifndef soap_write_swad__tag -#define soap_write_swad__tag(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__tag(soap, data),0) || soap_put_swad__tag(soap, data, "swad:tag", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__tag * SOAP_FMAC4 soap_get_swad__tag(struct soap*, struct swad__tag *, const char*, const char*); - -#ifndef soap_read_swad__tag -#define soap_read_swad__tag(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__tag(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getTestConfigOutput -#define SOAP_TYPE_swad__getTestConfigOutput (31) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getTestConfigOutput(struct soap*, struct swad__getTestConfigOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getTestConfigOutput(struct soap*, const struct swad__getTestConfigOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getTestConfigOutput(struct soap*, const char*, int, const struct swad__getTestConfigOutput *, const char*); -SOAP_FMAC3 struct swad__getTestConfigOutput * SOAP_FMAC4 soap_in_swad__getTestConfigOutput(struct soap*, const char*, struct swad__getTestConfigOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getTestConfigOutput(struct soap*, const struct swad__getTestConfigOutput *, const char*, const char*); - -#ifndef soap_write_swad__getTestConfigOutput -#define soap_write_swad__getTestConfigOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getTestConfigOutput(soap, data),0) || soap_put_swad__getTestConfigOutput(soap, data, "swad:getTestConfigOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getTestConfigOutput * SOAP_FMAC4 soap_get_swad__getTestConfigOutput(struct soap*, struct swad__getTestConfigOutput *, const char*, const char*); - -#ifndef soap_read_swad__getTestConfigOutput -#define soap_read_swad__getTestConfigOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getTestConfigOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__markNotificationsAsReadOutput -#define SOAP_TYPE_swad__markNotificationsAsReadOutput (30) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__markNotificationsAsReadOutput(struct soap*, struct swad__markNotificationsAsReadOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__markNotificationsAsReadOutput(struct soap*, const struct swad__markNotificationsAsReadOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__markNotificationsAsReadOutput(struct soap*, const char*, int, const struct swad__markNotificationsAsReadOutput *, const char*); -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput * SOAP_FMAC4 soap_in_swad__markNotificationsAsReadOutput(struct soap*, const char*, struct swad__markNotificationsAsReadOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__markNotificationsAsReadOutput(struct soap*, const struct swad__markNotificationsAsReadOutput *, const char*, const char*); - -#ifndef soap_write_swad__markNotificationsAsReadOutput -#define soap_write_swad__markNotificationsAsReadOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__markNotificationsAsReadOutput(soap, data),0) || soap_put_swad__markNotificationsAsReadOutput(soap, data, "swad:markNotificationsAsReadOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput * SOAP_FMAC4 soap_get_swad__markNotificationsAsReadOutput(struct soap*, struct swad__markNotificationsAsReadOutput *, const char*, const char*); - -#ifndef soap_read_swad__markNotificationsAsReadOutput -#define soap_read_swad__markNotificationsAsReadOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__markNotificationsAsReadOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getNotificationsOutput -#define SOAP_TYPE_swad__getNotificationsOutput (29) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNotificationsOutput(struct soap*, struct swad__getNotificationsOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNotificationsOutput(struct soap*, const struct swad__getNotificationsOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNotificationsOutput(struct soap*, const char*, int, const struct swad__getNotificationsOutput *, const char*); -SOAP_FMAC3 struct swad__getNotificationsOutput * SOAP_FMAC4 soap_in_swad__getNotificationsOutput(struct soap*, const char*, struct swad__getNotificationsOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNotificationsOutput(struct soap*, const struct swad__getNotificationsOutput *, const char*, const char*); - -#ifndef soap_write_swad__getNotificationsOutput -#define soap_write_swad__getNotificationsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getNotificationsOutput(soap, data),0) || soap_put_swad__getNotificationsOutput(soap, data, "swad:getNotificationsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getNotificationsOutput * SOAP_FMAC4 soap_get_swad__getNotificationsOutput(struct soap*, struct swad__getNotificationsOutput *, const char*, const char*); - -#ifndef soap_read_swad__getNotificationsOutput -#define soap_read_swad__getNotificationsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getNotificationsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__notificationsArray -#define SOAP_TYPE_swad__notificationsArray (27) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__notificationsArray(struct soap*, struct swad__notificationsArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__notificationsArray(struct soap*, struct swad__notificationsArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__notificationsArray(struct soap*, const char*, int, const struct swad__notificationsArray *, const char*); -SOAP_FMAC3 struct swad__notificationsArray * SOAP_FMAC4 soap_in_swad__notificationsArray(struct soap*, const char*, struct swad__notificationsArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__notificationsArray(struct soap*, const struct swad__notificationsArray *, const char*, const char*); - -#ifndef soap_write_swad__notificationsArray -#define soap_write_swad__notificationsArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__notificationsArray(soap, data),0) || soap_put_swad__notificationsArray(soap, data, "swad:notificationsArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__notificationsArray * SOAP_FMAC4 soap_get_swad__notificationsArray(struct soap*, struct swad__notificationsArray *, const char*, const char*); - -#ifndef soap_read_swad__notificationsArray -#define soap_read_swad__notificationsArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__notificationsArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__notification -#define SOAP_TYPE_swad__notification (26) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__notification(struct soap*, struct swad__notification *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__notification(struct soap*, const struct swad__notification *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__notification(struct soap*, const char*, int, const struct swad__notification *, const char*); -SOAP_FMAC3 struct swad__notification * SOAP_FMAC4 soap_in_swad__notification(struct soap*, const char*, struct swad__notification *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__notification(struct soap*, const struct swad__notification *, const char*, const char*); - -#ifndef soap_write_swad__notification -#define soap_write_swad__notification(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__notification(soap, data),0) || soap_put_swad__notification(soap, data, "swad:notification", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__notification * SOAP_FMAC4 soap_get_swad__notification(struct soap*, struct swad__notification *, const char*, const char*); - -#ifndef soap_read_swad__notification -#define soap_read_swad__notification(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__notification(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__sendMyGroupsOutput -#define SOAP_TYPE_swad__sendMyGroupsOutput (25) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__sendMyGroupsOutput(struct soap*, struct swad__sendMyGroupsOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__sendMyGroupsOutput(struct soap*, const struct swad__sendMyGroupsOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__sendMyGroupsOutput(struct soap*, const char*, int, const struct swad__sendMyGroupsOutput *, const char*); -SOAP_FMAC3 struct swad__sendMyGroupsOutput * SOAP_FMAC4 soap_in_swad__sendMyGroupsOutput(struct soap*, const char*, struct swad__sendMyGroupsOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__sendMyGroupsOutput(struct soap*, const struct swad__sendMyGroupsOutput *, const char*, const char*); - -#ifndef soap_write_swad__sendMyGroupsOutput -#define soap_write_swad__sendMyGroupsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__sendMyGroupsOutput(soap, data),0) || soap_put_swad__sendMyGroupsOutput(soap, data, "swad:sendMyGroupsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendMyGroupsOutput * SOAP_FMAC4 soap_get_swad__sendMyGroupsOutput(struct soap*, struct swad__sendMyGroupsOutput *, const char*, const char*); - -#ifndef soap_read_swad__sendMyGroupsOutput -#define soap_read_swad__sendMyGroupsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__sendMyGroupsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getGroupsOutput -#define SOAP_TYPE_swad__getGroupsOutput (24) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroupsOutput(struct soap*, struct swad__getGroupsOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroupsOutput(struct soap*, const struct swad__getGroupsOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroupsOutput(struct soap*, const char*, int, const struct swad__getGroupsOutput *, const char*); -SOAP_FMAC3 struct swad__getGroupsOutput * SOAP_FMAC4 soap_in_swad__getGroupsOutput(struct soap*, const char*, struct swad__getGroupsOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroupsOutput(struct soap*, const struct swad__getGroupsOutput *, const char*, const char*); - -#ifndef soap_write_swad__getGroupsOutput -#define soap_write_swad__getGroupsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getGroupsOutput(soap, data),0) || soap_put_swad__getGroupsOutput(soap, data, "swad:getGroupsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getGroupsOutput * SOAP_FMAC4 soap_get_swad__getGroupsOutput(struct soap*, struct swad__getGroupsOutput *, const char*, const char*); - -#ifndef soap_read_swad__getGroupsOutput -#define soap_read_swad__getGroupsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getGroupsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__groupsArray -#define SOAP_TYPE_swad__groupsArray (22) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__groupsArray(struct soap*, struct swad__groupsArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__groupsArray(struct soap*, struct swad__groupsArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__groupsArray(struct soap*, const char*, int, const struct swad__groupsArray *, const char*); -SOAP_FMAC3 struct swad__groupsArray * SOAP_FMAC4 soap_in_swad__groupsArray(struct soap*, const char*, struct swad__groupsArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__groupsArray(struct soap*, const struct swad__groupsArray *, const char*, const char*); - -#ifndef soap_write_swad__groupsArray -#define soap_write_swad__groupsArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__groupsArray(soap, data),0) || soap_put_swad__groupsArray(soap, data, "swad:groupsArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__groupsArray * SOAP_FMAC4 soap_get_swad__groupsArray(struct soap*, struct swad__groupsArray *, const char*, const char*); - -#ifndef soap_read_swad__groupsArray -#define soap_read_swad__groupsArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__groupsArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__group -#define SOAP_TYPE_swad__group (21) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__group(struct soap*, struct swad__group *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__group(struct soap*, const struct swad__group *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__group(struct soap*, const char*, int, const struct swad__group *, const char*); -SOAP_FMAC3 struct swad__group * SOAP_FMAC4 soap_in_swad__group(struct soap*, const char*, struct swad__group *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__group(struct soap*, const struct swad__group *, const char*, const char*); - -#ifndef soap_write_swad__group -#define soap_write_swad__group(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__group(soap, data),0) || soap_put_swad__group(soap, data, "swad:group", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__group * SOAP_FMAC4 soap_get_swad__group(struct soap*, struct swad__group *, const char*, const char*); - -#ifndef soap_read_swad__group -#define soap_read_swad__group(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__group(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getGroupTypesOutput -#define SOAP_TYPE_swad__getGroupTypesOutput (20) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getGroupTypesOutput(struct soap*, struct swad__getGroupTypesOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getGroupTypesOutput(struct soap*, const struct swad__getGroupTypesOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getGroupTypesOutput(struct soap*, const char*, int, const struct swad__getGroupTypesOutput *, const char*); -SOAP_FMAC3 struct swad__getGroupTypesOutput * SOAP_FMAC4 soap_in_swad__getGroupTypesOutput(struct soap*, const char*, struct swad__getGroupTypesOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getGroupTypesOutput(struct soap*, const struct swad__getGroupTypesOutput *, const char*, const char*); - -#ifndef soap_write_swad__getGroupTypesOutput -#define soap_write_swad__getGroupTypesOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getGroupTypesOutput(soap, data),0) || soap_put_swad__getGroupTypesOutput(soap, data, "swad:getGroupTypesOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getGroupTypesOutput * SOAP_FMAC4 soap_get_swad__getGroupTypesOutput(struct soap*, struct swad__getGroupTypesOutput *, const char*, const char*); - -#ifndef soap_read_swad__getGroupTypesOutput -#define soap_read_swad__getGroupTypesOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getGroupTypesOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__groupTypesArray -#define SOAP_TYPE_swad__groupTypesArray (18) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__groupTypesArray(struct soap*, struct swad__groupTypesArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__groupTypesArray(struct soap*, struct swad__groupTypesArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__groupTypesArray(struct soap*, const char*, int, const struct swad__groupTypesArray *, const char*); -SOAP_FMAC3 struct swad__groupTypesArray * SOAP_FMAC4 soap_in_swad__groupTypesArray(struct soap*, const char*, struct swad__groupTypesArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__groupTypesArray(struct soap*, const struct swad__groupTypesArray *, const char*, const char*); - -#ifndef soap_write_swad__groupTypesArray -#define soap_write_swad__groupTypesArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__groupTypesArray(soap, data),0) || soap_put_swad__groupTypesArray(soap, data, "swad:groupTypesArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__groupTypesArray * SOAP_FMAC4 soap_get_swad__groupTypesArray(struct soap*, struct swad__groupTypesArray *, const char*, const char*); - -#ifndef soap_read_swad__groupTypesArray -#define soap_read_swad__groupTypesArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__groupTypesArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__groupType -#define SOAP_TYPE_swad__groupType (16) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__groupType(struct soap*, struct swad__groupType *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__groupType(struct soap*, const struct swad__groupType *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__groupType(struct soap*, const char*, int, const struct swad__groupType *, const char*); -SOAP_FMAC3 struct swad__groupType * SOAP_FMAC4 soap_in_swad__groupType(struct soap*, const char*, struct swad__groupType *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__groupType(struct soap*, const struct swad__groupType *, const char*, const char*); - -#ifndef soap_write_swad__groupType -#define soap_write_swad__groupType(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__groupType(soap, data),0) || soap_put_swad__groupType(soap, data, "swad:groupType", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__groupType * SOAP_FMAC4 soap_get_swad__groupType(struct soap*, struct swad__groupType *, const char*, const char*); - -#ifndef soap_read_swad__groupType -#define soap_read_swad__groupType(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__groupType(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getCourseInfoOutput -#define SOAP_TYPE_swad__getCourseInfoOutput (15) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCourseInfoOutput(struct soap*, struct swad__getCourseInfoOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCourseInfoOutput(struct soap*, const struct swad__getCourseInfoOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCourseInfoOutput(struct soap*, const char*, int, const struct swad__getCourseInfoOutput *, const char*); -SOAP_FMAC3 struct swad__getCourseInfoOutput * SOAP_FMAC4 soap_in_swad__getCourseInfoOutput(struct soap*, const char*, struct swad__getCourseInfoOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCourseInfoOutput(struct soap*, const struct swad__getCourseInfoOutput *, const char*, const char*); - -#ifndef soap_write_swad__getCourseInfoOutput -#define soap_write_swad__getCourseInfoOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getCourseInfoOutput(soap, data),0) || soap_put_swad__getCourseInfoOutput(soap, data, "swad:getCourseInfoOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getCourseInfoOutput * SOAP_FMAC4 soap_get_swad__getCourseInfoOutput(struct soap*, struct swad__getCourseInfoOutput *, const char*, const char*); - -#ifndef soap_read_swad__getCourseInfoOutput -#define soap_read_swad__getCourseInfoOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getCourseInfoOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getCoursesOutput -#define SOAP_TYPE_swad__getCoursesOutput (14) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getCoursesOutput(struct soap*, struct swad__getCoursesOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getCoursesOutput(struct soap*, const struct swad__getCoursesOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getCoursesOutput(struct soap*, const char*, int, const struct swad__getCoursesOutput *, const char*); -SOAP_FMAC3 struct swad__getCoursesOutput * SOAP_FMAC4 soap_in_swad__getCoursesOutput(struct soap*, const char*, struct swad__getCoursesOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getCoursesOutput(struct soap*, const struct swad__getCoursesOutput *, const char*, const char*); - -#ifndef soap_write_swad__getCoursesOutput -#define soap_write_swad__getCoursesOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getCoursesOutput(soap, data),0) || soap_put_swad__getCoursesOutput(soap, data, "swad:getCoursesOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getCoursesOutput * SOAP_FMAC4 soap_get_swad__getCoursesOutput(struct soap*, struct swad__getCoursesOutput *, const char*, const char*); - -#ifndef soap_read_swad__getCoursesOutput -#define soap_read_swad__getCoursesOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getCoursesOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__coursesArray -#define SOAP_TYPE_swad__coursesArray (12) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__coursesArray(struct soap*, struct swad__coursesArray *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__coursesArray(struct soap*, struct swad__coursesArray const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__coursesArray(struct soap*, const char*, int, const struct swad__coursesArray *, const char*); -SOAP_FMAC3 struct swad__coursesArray * SOAP_FMAC4 soap_in_swad__coursesArray(struct soap*, const char*, struct swad__coursesArray *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__coursesArray(struct soap*, const struct swad__coursesArray *, const char*, const char*); - -#ifndef soap_write_swad__coursesArray -#define soap_write_swad__coursesArray(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__coursesArray(soap, data),0) || soap_put_swad__coursesArray(soap, data, "swad:coursesArray", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__coursesArray * SOAP_FMAC4 soap_get_swad__coursesArray(struct soap*, struct swad__coursesArray *, const char*, const char*); - -#ifndef soap_read_swad__coursesArray -#define soap_read_swad__coursesArray(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__coursesArray(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__course -#define SOAP_TYPE_swad__course (11) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__course(struct soap*, struct swad__course *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__course(struct soap*, const struct swad__course *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__course(struct soap*, const char*, int, const struct swad__course *, const char*); -SOAP_FMAC3 struct swad__course * SOAP_FMAC4 soap_in_swad__course(struct soap*, const char*, struct swad__course *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__course(struct soap*, const struct swad__course *, const char*, const char*); - -#ifndef soap_write_swad__course -#define soap_write_swad__course(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__course(soap, data),0) || soap_put_swad__course(soap, data, "swad:course", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__course * SOAP_FMAC4 soap_get_swad__course(struct soap*, struct swad__course *, const char*, const char*); - -#ifndef soap_read_swad__course -#define soap_read_swad__course(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__course(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__getNewPasswordOutput -#define SOAP_TYPE_swad__getNewPasswordOutput (10) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__getNewPasswordOutput(struct soap*, struct swad__getNewPasswordOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__getNewPasswordOutput(struct soap*, const struct swad__getNewPasswordOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__getNewPasswordOutput(struct soap*, const char*, int, const struct swad__getNewPasswordOutput *, const char*); -SOAP_FMAC3 struct swad__getNewPasswordOutput * SOAP_FMAC4 soap_in_swad__getNewPasswordOutput(struct soap*, const char*, struct swad__getNewPasswordOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__getNewPasswordOutput(struct soap*, const struct swad__getNewPasswordOutput *, const char*, const char*); - -#ifndef soap_write_swad__getNewPasswordOutput -#define soap_write_swad__getNewPasswordOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__getNewPasswordOutput(soap, data),0) || soap_put_swad__getNewPasswordOutput(soap, data, "swad:getNewPasswordOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getNewPasswordOutput * SOAP_FMAC4 soap_get_swad__getNewPasswordOutput(struct soap*, struct swad__getNewPasswordOutput *, const char*, const char*); - -#ifndef soap_read_swad__getNewPasswordOutput -#define soap_read_swad__getNewPasswordOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__getNewPasswordOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__loginByUserPasswordKeyOutput -#define SOAP_TYPE_swad__loginByUserPasswordKeyOutput (9) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginByUserPasswordKeyOutput(struct soap*, struct swad__loginByUserPasswordKeyOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginByUserPasswordKeyOutput(struct soap*, const struct swad__loginByUserPasswordKeyOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginByUserPasswordKeyOutput(struct soap*, const char*, int, const struct swad__loginByUserPasswordKeyOutput *, const char*); -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput * SOAP_FMAC4 soap_in_swad__loginByUserPasswordKeyOutput(struct soap*, const char*, struct swad__loginByUserPasswordKeyOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginByUserPasswordKeyOutput(struct soap*, const struct swad__loginByUserPasswordKeyOutput *, const char*, const char*); - -#ifndef soap_write_swad__loginByUserPasswordKeyOutput -#define soap_write_swad__loginByUserPasswordKeyOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__loginByUserPasswordKeyOutput(soap, data),0) || soap_put_swad__loginByUserPasswordKeyOutput(soap, data, "swad:loginByUserPasswordKeyOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput * SOAP_FMAC4 soap_get_swad__loginByUserPasswordKeyOutput(struct soap*, struct swad__loginByUserPasswordKeyOutput *, const char*, const char*); - -#ifndef soap_read_swad__loginByUserPasswordKeyOutput -#define soap_read_swad__loginByUserPasswordKeyOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__loginByUserPasswordKeyOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__loginBySessionKeyOutput -#define SOAP_TYPE_swad__loginBySessionKeyOutput (8) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__loginBySessionKeyOutput(struct soap*, struct swad__loginBySessionKeyOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__loginBySessionKeyOutput(struct soap*, const struct swad__loginBySessionKeyOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__loginBySessionKeyOutput(struct soap*, const char*, int, const struct swad__loginBySessionKeyOutput *, const char*); -SOAP_FMAC3 struct swad__loginBySessionKeyOutput * SOAP_FMAC4 soap_in_swad__loginBySessionKeyOutput(struct soap*, const char*, struct swad__loginBySessionKeyOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__loginBySessionKeyOutput(struct soap*, const struct swad__loginBySessionKeyOutput *, const char*, const char*); - -#ifndef soap_write_swad__loginBySessionKeyOutput -#define soap_write_swad__loginBySessionKeyOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__loginBySessionKeyOutput(soap, data),0) || soap_put_swad__loginBySessionKeyOutput(soap, data, "swad:loginBySessionKeyOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__loginBySessionKeyOutput * SOAP_FMAC4 soap_get_swad__loginBySessionKeyOutput(struct soap*, struct swad__loginBySessionKeyOutput *, const char*, const char*); - -#ifndef soap_read_swad__loginBySessionKeyOutput -#define soap_read_swad__loginBySessionKeyOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__loginBySessionKeyOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_swad__createAccountOutput -#define SOAP_TYPE_swad__createAccountOutput (7) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_swad__createAccountOutput(struct soap*, struct swad__createAccountOutput *); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_swad__createAccountOutput(struct soap*, const struct swad__createAccountOutput *); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_swad__createAccountOutput(struct soap*, const char*, int, const struct swad__createAccountOutput *, const char*); -SOAP_FMAC3 struct swad__createAccountOutput * SOAP_FMAC4 soap_in_swad__createAccountOutput(struct soap*, const char*, struct swad__createAccountOutput *, const char*); - -SOAP_FMAC3 int SOAP_FMAC4 soap_put_swad__createAccountOutput(struct soap*, const struct swad__createAccountOutput *, const char*, const char*); - -#ifndef soap_write_swad__createAccountOutput -#define soap_write_swad__createAccountOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_swad__createAccountOutput(soap, data),0) || soap_put_swad__createAccountOutput(soap, data, "swad:createAccountOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__createAccountOutput * SOAP_FMAC4 soap_get_swad__createAccountOutput(struct soap*, struct swad__createAccountOutput *, const char*, const char*); - -#ifndef soap_read_swad__createAccountOutput -#define soap_read_swad__createAccountOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_swad__createAccountOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason -#define SOAP_TYPE_PointerToSOAP_ENV__Reason (142) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap*, const char *, int, struct SOAP_ENV__Reason *const*, const char *); -SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*, const char*, const char*); - -#ifndef soap_write_PointerToSOAP_ENV__Reason -#define soap_write_PointerToSOAP_ENV__Reason(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToSOAP_ENV__Reason(soap, data),0) || soap_put_PointerToSOAP_ENV__Reason(soap, data, "SOAP-ENV:Reason", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason **, const char*, const char*); - -#ifndef soap_read_PointerToSOAP_ENV__Reason -#define soap_read_PointerToSOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToSOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail -#define SOAP_TYPE_PointerToSOAP_ENV__Detail (141) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap*, const char *, int, struct SOAP_ENV__Detail *const*, const char *); -SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*, const char*, const char*); - -#ifndef soap_write_PointerToSOAP_ENV__Detail -#define soap_write_PointerToSOAP_ENV__Detail(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToSOAP_ENV__Detail(soap, data),0) || soap_put_PointerToSOAP_ENV__Detail(soap, data, "SOAP-ENV:Detail", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail **, const char*, const char*); - -#ifndef soap_read_PointerToSOAP_ENV__Detail -#define soap_read_PointerToSOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToSOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_PointerToSOAP_ENV__Code -#define SOAP_TYPE_PointerToSOAP_ENV__Code (135) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap*, const char *, int, struct SOAP_ENV__Code *const*, const char *); -SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*, const char*, const char*); - -#ifndef soap_write_PointerToSOAP_ENV__Code -#define soap_write_PointerToSOAP_ENV__Code(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToSOAP_ENV__Code(soap, data),0) || soap_put_PointerToSOAP_ENV__Code(soap, data, "SOAP-ENV:Code", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code **, const char*, const char*); - -#ifndef soap_read_PointerToSOAP_ENV__Code -#define soap_read_PointerToSOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToSOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#endif - -#ifndef SOAP_TYPE_PointerToswad__sendMessageOutput -#define SOAP_TYPE_PointerToswad__sendMessageOutput (130) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendMessageOutput(struct soap*, struct swad__sendMessageOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendMessageOutput(struct soap*, const char *, int, struct swad__sendMessageOutput *const*, const char *); -SOAP_FMAC3 struct swad__sendMessageOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendMessageOutput(struct soap*, const char*, struct swad__sendMessageOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendMessageOutput(struct soap*, struct swad__sendMessageOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__sendMessageOutput -#define soap_write_PointerToswad__sendMessageOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__sendMessageOutput(soap, data),0) || soap_put_PointerToswad__sendMessageOutput(soap, data, "swad:sendMessageOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendMessageOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendMessageOutput(struct soap*, struct swad__sendMessageOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__sendMessageOutput -#define soap_read_PointerToswad__sendMessageOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__sendMessageOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__sendNoticeOutput -#define SOAP_TYPE_PointerToswad__sendNoticeOutput (127) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendNoticeOutput(struct soap*, struct swad__sendNoticeOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendNoticeOutput(struct soap*, const char *, int, struct swad__sendNoticeOutput *const*, const char *); -SOAP_FMAC3 struct swad__sendNoticeOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendNoticeOutput(struct soap*, const char*, struct swad__sendNoticeOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendNoticeOutput(struct soap*, struct swad__sendNoticeOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__sendNoticeOutput -#define soap_write_PointerToswad__sendNoticeOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__sendNoticeOutput(soap, data),0) || soap_put_PointerToswad__sendNoticeOutput(soap, data, "swad:sendNoticeOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendNoticeOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendNoticeOutput(struct soap*, struct swad__sendNoticeOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__sendNoticeOutput -#define soap_read_PointerToswad__sendNoticeOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__sendNoticeOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__markNotificationsAsReadOutput -#define SOAP_TYPE_PointerToswad__markNotificationsAsReadOutput (124) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__markNotificationsAsReadOutput(struct soap*, struct swad__markNotificationsAsReadOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__markNotificationsAsReadOutput(struct soap*, const char *, int, struct swad__markNotificationsAsReadOutput *const*, const char *); -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput ** SOAP_FMAC4 soap_in_PointerToswad__markNotificationsAsReadOutput(struct soap*, const char*, struct swad__markNotificationsAsReadOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__markNotificationsAsReadOutput(struct soap*, struct swad__markNotificationsAsReadOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__markNotificationsAsReadOutput -#define soap_write_PointerToswad__markNotificationsAsReadOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__markNotificationsAsReadOutput(soap, data),0) || soap_put_PointerToswad__markNotificationsAsReadOutput(soap, data, "swad:markNotificationsAsReadOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__markNotificationsAsReadOutput ** SOAP_FMAC4 soap_get_PointerToswad__markNotificationsAsReadOutput(struct soap*, struct swad__markNotificationsAsReadOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__markNotificationsAsReadOutput -#define soap_read_PointerToswad__markNotificationsAsReadOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__markNotificationsAsReadOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getNotificationsOutput -#define SOAP_TYPE_PointerToswad__getNotificationsOutput (121) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getNotificationsOutput(struct soap*, struct swad__getNotificationsOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getNotificationsOutput(struct soap*, const char *, int, struct swad__getNotificationsOutput *const*, const char *); -SOAP_FMAC3 struct swad__getNotificationsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getNotificationsOutput(struct soap*, const char*, struct swad__getNotificationsOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getNotificationsOutput(struct soap*, struct swad__getNotificationsOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getNotificationsOutput -#define soap_write_PointerToswad__getNotificationsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getNotificationsOutput(soap, data),0) || soap_put_PointerToswad__getNotificationsOutput(soap, data, "swad:getNotificationsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getNotificationsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getNotificationsOutput(struct soap*, struct swad__getNotificationsOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getNotificationsOutput -#define soap_read_PointerToswad__getNotificationsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getNotificationsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__sendAttendanceUsersOutput -#define SOAP_TYPE_PointerToswad__sendAttendanceUsersOutput (118) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendAttendanceUsersOutput(struct soap*, struct swad__sendAttendanceUsersOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendAttendanceUsersOutput(struct soap*, const char *, int, struct swad__sendAttendanceUsersOutput *const*, const char *); -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendAttendanceUsersOutput(struct soap*, const char*, struct swad__sendAttendanceUsersOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendAttendanceUsersOutput(struct soap*, struct swad__sendAttendanceUsersOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__sendAttendanceUsersOutput -#define soap_write_PointerToswad__sendAttendanceUsersOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__sendAttendanceUsersOutput(soap, data),0) || soap_put_PointerToswad__sendAttendanceUsersOutput(soap, data, "swad:sendAttendanceUsersOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendAttendanceUsersOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendAttendanceUsersOutput(struct soap*, struct swad__sendAttendanceUsersOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__sendAttendanceUsersOutput -#define soap_read_PointerToswad__sendAttendanceUsersOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__sendAttendanceUsersOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getAttendanceUsersOutput -#define SOAP_TYPE_PointerToswad__getAttendanceUsersOutput (115) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getAttendanceUsersOutput(struct soap*, struct swad__getAttendanceUsersOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getAttendanceUsersOutput(struct soap*, const char *, int, struct swad__getAttendanceUsersOutput *const*, const char *); -SOAP_FMAC3 struct swad__getAttendanceUsersOutput ** SOAP_FMAC4 soap_in_PointerToswad__getAttendanceUsersOutput(struct soap*, const char*, struct swad__getAttendanceUsersOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getAttendanceUsersOutput(struct soap*, struct swad__getAttendanceUsersOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getAttendanceUsersOutput -#define soap_write_PointerToswad__getAttendanceUsersOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getAttendanceUsersOutput(soap, data),0) || soap_put_PointerToswad__getAttendanceUsersOutput(soap, data, "swad:getAttendanceUsersOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getAttendanceUsersOutput ** SOAP_FMAC4 soap_get_PointerToswad__getAttendanceUsersOutput(struct soap*, struct swad__getAttendanceUsersOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getAttendanceUsersOutput -#define soap_read_PointerToswad__getAttendanceUsersOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getAttendanceUsersOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__sendAttendanceEventOutput -#define SOAP_TYPE_PointerToswad__sendAttendanceEventOutput (112) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendAttendanceEventOutput(struct soap*, struct swad__sendAttendanceEventOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendAttendanceEventOutput(struct soap*, const char *, int, struct swad__sendAttendanceEventOutput *const*, const char *); -SOAP_FMAC3 struct swad__sendAttendanceEventOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendAttendanceEventOutput(struct soap*, const char*, struct swad__sendAttendanceEventOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendAttendanceEventOutput(struct soap*, struct swad__sendAttendanceEventOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__sendAttendanceEventOutput -#define soap_write_PointerToswad__sendAttendanceEventOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__sendAttendanceEventOutput(soap, data),0) || soap_put_PointerToswad__sendAttendanceEventOutput(soap, data, "swad:sendAttendanceEventOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendAttendanceEventOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendAttendanceEventOutput(struct soap*, struct swad__sendAttendanceEventOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__sendAttendanceEventOutput -#define soap_read_PointerToswad__sendAttendanceEventOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__sendAttendanceEventOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getAttendanceEventsOutput -#define SOAP_TYPE_PointerToswad__getAttendanceEventsOutput (109) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getAttendanceEventsOutput(struct soap*, struct swad__getAttendanceEventsOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getAttendanceEventsOutput(struct soap*, const char *, int, struct swad__getAttendanceEventsOutput *const*, const char *); -SOAP_FMAC3 struct swad__getAttendanceEventsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getAttendanceEventsOutput(struct soap*, const char*, struct swad__getAttendanceEventsOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getAttendanceEventsOutput(struct soap*, struct swad__getAttendanceEventsOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getAttendanceEventsOutput -#define soap_write_PointerToswad__getAttendanceEventsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getAttendanceEventsOutput(soap, data),0) || soap_put_PointerToswad__getAttendanceEventsOutput(soap, data, "swad:getAttendanceEventsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getAttendanceEventsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getAttendanceEventsOutput(struct soap*, struct swad__getAttendanceEventsOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getAttendanceEventsOutput -#define soap_read_PointerToswad__getAttendanceEventsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getAttendanceEventsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getUsersOutput -#define SOAP_TYPE_PointerToswad__getUsersOutput (106) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getUsersOutput(struct soap*, struct swad__getUsersOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getUsersOutput(struct soap*, const char *, int, struct swad__getUsersOutput *const*, const char *); -SOAP_FMAC3 struct swad__getUsersOutput ** SOAP_FMAC4 soap_in_PointerToswad__getUsersOutput(struct soap*, const char*, struct swad__getUsersOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getUsersOutput(struct soap*, struct swad__getUsersOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getUsersOutput -#define soap_write_PointerToswad__getUsersOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getUsersOutput(soap, data),0) || soap_put_PointerToswad__getUsersOutput(soap, data, "swad:getUsersOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getUsersOutput ** SOAP_FMAC4 soap_get_PointerToswad__getUsersOutput(struct soap*, struct swad__getUsersOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getUsersOutput -#define soap_read_PointerToswad__getUsersOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getUsersOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getTestsOutput -#define SOAP_TYPE_PointerToswad__getTestsOutput (103) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getTestsOutput(struct soap*, struct swad__getTestsOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getTestsOutput(struct soap*, const char *, int, struct swad__getTestsOutput *const*, const char *); -SOAP_FMAC3 struct swad__getTestsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getTestsOutput(struct soap*, const char*, struct swad__getTestsOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getTestsOutput(struct soap*, struct swad__getTestsOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getTestsOutput -#define soap_write_PointerToswad__getTestsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getTestsOutput(soap, data),0) || soap_put_PointerToswad__getTestsOutput(soap, data, "swad:getTestsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getTestsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getTestsOutput(struct soap*, struct swad__getTestsOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getTestsOutput -#define soap_read_PointerToswad__getTestsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getTestsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getTestConfigOutput -#define SOAP_TYPE_PointerToswad__getTestConfigOutput (100) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getTestConfigOutput(struct soap*, struct swad__getTestConfigOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getTestConfigOutput(struct soap*, const char *, int, struct swad__getTestConfigOutput *const*, const char *); -SOAP_FMAC3 struct swad__getTestConfigOutput ** SOAP_FMAC4 soap_in_PointerToswad__getTestConfigOutput(struct soap*, const char*, struct swad__getTestConfigOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getTestConfigOutput(struct soap*, struct swad__getTestConfigOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getTestConfigOutput -#define soap_write_PointerToswad__getTestConfigOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getTestConfigOutput(soap, data),0) || soap_put_PointerToswad__getTestConfigOutput(soap, data, "swad:getTestConfigOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getTestConfigOutput ** SOAP_FMAC4 soap_get_PointerToswad__getTestConfigOutput(struct soap*, struct swad__getTestConfigOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getTestConfigOutput -#define soap_read_PointerToswad__getTestConfigOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getTestConfigOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getMarksOutput -#define SOAP_TYPE_PointerToswad__getMarksOutput (97) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getMarksOutput(struct soap*, struct swad__getMarksOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getMarksOutput(struct soap*, const char *, int, struct swad__getMarksOutput *const*, const char *); -SOAP_FMAC3 struct swad__getMarksOutput ** SOAP_FMAC4 soap_in_PointerToswad__getMarksOutput(struct soap*, const char*, struct swad__getMarksOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getMarksOutput(struct soap*, struct swad__getMarksOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getMarksOutput -#define soap_write_PointerToswad__getMarksOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getMarksOutput(soap, data),0) || soap_put_PointerToswad__getMarksOutput(soap, data, "swad:getMarksOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getMarksOutput ** SOAP_FMAC4 soap_get_PointerToswad__getMarksOutput(struct soap*, struct swad__getMarksOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getMarksOutput -#define soap_read_PointerToswad__getMarksOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getMarksOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getFileOutput -#define SOAP_TYPE_PointerToswad__getFileOutput (94) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getFileOutput(struct soap*, struct swad__getFileOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getFileOutput(struct soap*, const char *, int, struct swad__getFileOutput *const*, const char *); -SOAP_FMAC3 struct swad__getFileOutput ** SOAP_FMAC4 soap_in_PointerToswad__getFileOutput(struct soap*, const char*, struct swad__getFileOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getFileOutput(struct soap*, struct swad__getFileOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getFileOutput -#define soap_write_PointerToswad__getFileOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getFileOutput(soap, data),0) || soap_put_PointerToswad__getFileOutput(soap, data, "swad:getFileOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getFileOutput ** SOAP_FMAC4 soap_get_PointerToswad__getFileOutput(struct soap*, struct swad__getFileOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getFileOutput -#define soap_read_PointerToswad__getFileOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getFileOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getDirectoryTreeOutput -#define SOAP_TYPE_PointerToswad__getDirectoryTreeOutput (91) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getDirectoryTreeOutput(struct soap*, struct swad__getDirectoryTreeOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getDirectoryTreeOutput(struct soap*, const char *, int, struct swad__getDirectoryTreeOutput *const*, const char *); -SOAP_FMAC3 struct swad__getDirectoryTreeOutput ** SOAP_FMAC4 soap_in_PointerToswad__getDirectoryTreeOutput(struct soap*, const char*, struct swad__getDirectoryTreeOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getDirectoryTreeOutput(struct soap*, struct swad__getDirectoryTreeOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getDirectoryTreeOutput -#define soap_write_PointerToswad__getDirectoryTreeOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getDirectoryTreeOutput(soap, data),0) || soap_put_PointerToswad__getDirectoryTreeOutput(soap, data, "swad:getDirectoryTreeOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getDirectoryTreeOutput ** SOAP_FMAC4 soap_get_PointerToswad__getDirectoryTreeOutput(struct soap*, struct swad__getDirectoryTreeOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getDirectoryTreeOutput -#define soap_read_PointerToswad__getDirectoryTreeOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getDirectoryTreeOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__sendMyGroupsOutput -#define SOAP_TYPE_PointerToswad__sendMyGroupsOutput (88) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__sendMyGroupsOutput(struct soap*, struct swad__sendMyGroupsOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__sendMyGroupsOutput(struct soap*, const char *, int, struct swad__sendMyGroupsOutput *const*, const char *); -SOAP_FMAC3 struct swad__sendMyGroupsOutput ** SOAP_FMAC4 soap_in_PointerToswad__sendMyGroupsOutput(struct soap*, const char*, struct swad__sendMyGroupsOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__sendMyGroupsOutput(struct soap*, struct swad__sendMyGroupsOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__sendMyGroupsOutput -#define soap_write_PointerToswad__sendMyGroupsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__sendMyGroupsOutput(soap, data),0) || soap_put_PointerToswad__sendMyGroupsOutput(soap, data, "swad:sendMyGroupsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__sendMyGroupsOutput ** SOAP_FMAC4 soap_get_PointerToswad__sendMyGroupsOutput(struct soap*, struct swad__sendMyGroupsOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__sendMyGroupsOutput -#define soap_read_PointerToswad__sendMyGroupsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__sendMyGroupsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getGroupsOutput -#define SOAP_TYPE_PointerToswad__getGroupsOutput (85) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getGroupsOutput(struct soap*, struct swad__getGroupsOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getGroupsOutput(struct soap*, const char *, int, struct swad__getGroupsOutput *const*, const char *); -SOAP_FMAC3 struct swad__getGroupsOutput ** SOAP_FMAC4 soap_in_PointerToswad__getGroupsOutput(struct soap*, const char*, struct swad__getGroupsOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getGroupsOutput(struct soap*, struct swad__getGroupsOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getGroupsOutput -#define soap_write_PointerToswad__getGroupsOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getGroupsOutput(soap, data),0) || soap_put_PointerToswad__getGroupsOutput(soap, data, "swad:getGroupsOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getGroupsOutput ** SOAP_FMAC4 soap_get_PointerToswad__getGroupsOutput(struct soap*, struct swad__getGroupsOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getGroupsOutput -#define soap_read_PointerToswad__getGroupsOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getGroupsOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getGroupTypesOutput -#define SOAP_TYPE_PointerToswad__getGroupTypesOutput (82) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getGroupTypesOutput(struct soap*, struct swad__getGroupTypesOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getGroupTypesOutput(struct soap*, const char *, int, struct swad__getGroupTypesOutput *const*, const char *); -SOAP_FMAC3 struct swad__getGroupTypesOutput ** SOAP_FMAC4 soap_in_PointerToswad__getGroupTypesOutput(struct soap*, const char*, struct swad__getGroupTypesOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getGroupTypesOutput(struct soap*, struct swad__getGroupTypesOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getGroupTypesOutput -#define soap_write_PointerToswad__getGroupTypesOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getGroupTypesOutput(soap, data),0) || soap_put_PointerToswad__getGroupTypesOutput(soap, data, "swad:getGroupTypesOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getGroupTypesOutput ** SOAP_FMAC4 soap_get_PointerToswad__getGroupTypesOutput(struct soap*, struct swad__getGroupTypesOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getGroupTypesOutput -#define soap_read_PointerToswad__getGroupTypesOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getGroupTypesOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getCourseInfoOutput -#define SOAP_TYPE_PointerToswad__getCourseInfoOutput (79) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getCourseInfoOutput(struct soap*, struct swad__getCourseInfoOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getCourseInfoOutput(struct soap*, const char *, int, struct swad__getCourseInfoOutput *const*, const char *); -SOAP_FMAC3 struct swad__getCourseInfoOutput ** SOAP_FMAC4 soap_in_PointerToswad__getCourseInfoOutput(struct soap*, const char*, struct swad__getCourseInfoOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getCourseInfoOutput(struct soap*, struct swad__getCourseInfoOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getCourseInfoOutput -#define soap_write_PointerToswad__getCourseInfoOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getCourseInfoOutput(soap, data),0) || soap_put_PointerToswad__getCourseInfoOutput(soap, data, "swad:getCourseInfoOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getCourseInfoOutput ** SOAP_FMAC4 soap_get_PointerToswad__getCourseInfoOutput(struct soap*, struct swad__getCourseInfoOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getCourseInfoOutput -#define soap_read_PointerToswad__getCourseInfoOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getCourseInfoOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getCoursesOutput -#define SOAP_TYPE_PointerToswad__getCoursesOutput (76) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getCoursesOutput(struct soap*, struct swad__getCoursesOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getCoursesOutput(struct soap*, const char *, int, struct swad__getCoursesOutput *const*, const char *); -SOAP_FMAC3 struct swad__getCoursesOutput ** SOAP_FMAC4 soap_in_PointerToswad__getCoursesOutput(struct soap*, const char*, struct swad__getCoursesOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getCoursesOutput(struct soap*, struct swad__getCoursesOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getCoursesOutput -#define soap_write_PointerToswad__getCoursesOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getCoursesOutput(soap, data),0) || soap_put_PointerToswad__getCoursesOutput(soap, data, "swad:getCoursesOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getCoursesOutput ** SOAP_FMAC4 soap_get_PointerToswad__getCoursesOutput(struct soap*, struct swad__getCoursesOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getCoursesOutput -#define soap_read_PointerToswad__getCoursesOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getCoursesOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__getNewPasswordOutput -#define SOAP_TYPE_PointerToswad__getNewPasswordOutput (73) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__getNewPasswordOutput(struct soap*, struct swad__getNewPasswordOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__getNewPasswordOutput(struct soap*, const char *, int, struct swad__getNewPasswordOutput *const*, const char *); -SOAP_FMAC3 struct swad__getNewPasswordOutput ** SOAP_FMAC4 soap_in_PointerToswad__getNewPasswordOutput(struct soap*, const char*, struct swad__getNewPasswordOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__getNewPasswordOutput(struct soap*, struct swad__getNewPasswordOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__getNewPasswordOutput -#define soap_write_PointerToswad__getNewPasswordOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__getNewPasswordOutput(soap, data),0) || soap_put_PointerToswad__getNewPasswordOutput(soap, data, "swad:getNewPasswordOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__getNewPasswordOutput ** SOAP_FMAC4 soap_get_PointerToswad__getNewPasswordOutput(struct soap*, struct swad__getNewPasswordOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__getNewPasswordOutput -#define soap_read_PointerToswad__getNewPasswordOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__getNewPasswordOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__loginBySessionKeyOutput -#define SOAP_TYPE_PointerToswad__loginBySessionKeyOutput (70) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__loginBySessionKeyOutput(struct soap*, struct swad__loginBySessionKeyOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__loginBySessionKeyOutput(struct soap*, const char *, int, struct swad__loginBySessionKeyOutput *const*, const char *); -SOAP_FMAC3 struct swad__loginBySessionKeyOutput ** SOAP_FMAC4 soap_in_PointerToswad__loginBySessionKeyOutput(struct soap*, const char*, struct swad__loginBySessionKeyOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__loginBySessionKeyOutput(struct soap*, struct swad__loginBySessionKeyOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__loginBySessionKeyOutput -#define soap_write_PointerToswad__loginBySessionKeyOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__loginBySessionKeyOutput(soap, data),0) || soap_put_PointerToswad__loginBySessionKeyOutput(soap, data, "swad:loginBySessionKeyOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__loginBySessionKeyOutput ** SOAP_FMAC4 soap_get_PointerToswad__loginBySessionKeyOutput(struct soap*, struct swad__loginBySessionKeyOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__loginBySessionKeyOutput -#define soap_read_PointerToswad__loginBySessionKeyOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__loginBySessionKeyOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__loginByUserPasswordKeyOutput -#define SOAP_TYPE_PointerToswad__loginByUserPasswordKeyOutput (67) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__loginByUserPasswordKeyOutput(struct soap*, struct swad__loginByUserPasswordKeyOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__loginByUserPasswordKeyOutput(struct soap*, const char *, int, struct swad__loginByUserPasswordKeyOutput *const*, const char *); -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput ** SOAP_FMAC4 soap_in_PointerToswad__loginByUserPasswordKeyOutput(struct soap*, const char*, struct swad__loginByUserPasswordKeyOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__loginByUserPasswordKeyOutput(struct soap*, struct swad__loginByUserPasswordKeyOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__loginByUserPasswordKeyOutput -#define soap_write_PointerToswad__loginByUserPasswordKeyOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__loginByUserPasswordKeyOutput(soap, data),0) || soap_put_PointerToswad__loginByUserPasswordKeyOutput(soap, data, "swad:loginByUserPasswordKeyOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__loginByUserPasswordKeyOutput ** SOAP_FMAC4 soap_get_PointerToswad__loginByUserPasswordKeyOutput(struct soap*, struct swad__loginByUserPasswordKeyOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__loginByUserPasswordKeyOutput -#define soap_read_PointerToswad__loginByUserPasswordKeyOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__loginByUserPasswordKeyOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__createAccountOutput -#define SOAP_TYPE_PointerToswad__createAccountOutput (64) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__createAccountOutput(struct soap*, struct swad__createAccountOutput *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__createAccountOutput(struct soap*, const char *, int, struct swad__createAccountOutput *const*, const char *); -SOAP_FMAC3 struct swad__createAccountOutput ** SOAP_FMAC4 soap_in_PointerToswad__createAccountOutput(struct soap*, const char*, struct swad__createAccountOutput **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__createAccountOutput(struct soap*, struct swad__createAccountOutput *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__createAccountOutput -#define soap_write_PointerToswad__createAccountOutput(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__createAccountOutput(soap, data),0) || soap_put_PointerToswad__createAccountOutput(soap, data, "swad:createAccountOutput", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__createAccountOutput ** SOAP_FMAC4 soap_get_PointerToswad__createAccountOutput(struct soap*, struct swad__createAccountOutput **, const char*, const char*); - -#ifndef soap_read_PointerToswad__createAccountOutput -#define soap_read_PointerToswad__createAccountOutput(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__createAccountOutput(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__attendanceUser -#define SOAP_TYPE_PointerToswad__attendanceUser (56) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__attendanceUser(struct soap*, struct swad__attendanceUser *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__attendanceUser(struct soap*, const char *, int, struct swad__attendanceUser *const*, const char *); -SOAP_FMAC3 struct swad__attendanceUser ** SOAP_FMAC4 soap_in_PointerToswad__attendanceUser(struct soap*, const char*, struct swad__attendanceUser **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__attendanceUser(struct soap*, struct swad__attendanceUser *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__attendanceUser -#define soap_write_PointerToswad__attendanceUser(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__attendanceUser(soap, data),0) || soap_put_PointerToswad__attendanceUser(soap, data, "swad:attendanceUser", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__attendanceUser ** SOAP_FMAC4 soap_get_PointerToswad__attendanceUser(struct soap*, struct swad__attendanceUser **, const char*, const char*); - -#ifndef soap_read_PointerToswad__attendanceUser -#define soap_read_PointerToswad__attendanceUser(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__attendanceUser(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__attendanceEvent -#define SOAP_TYPE_PointerToswad__attendanceEvent (51) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__attendanceEvent(struct soap*, struct swad__attendanceEvent *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__attendanceEvent(struct soap*, const char *, int, struct swad__attendanceEvent *const*, const char *); -SOAP_FMAC3 struct swad__attendanceEvent ** SOAP_FMAC4 soap_in_PointerToswad__attendanceEvent(struct soap*, const char*, struct swad__attendanceEvent **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__attendanceEvent(struct soap*, struct swad__attendanceEvent *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__attendanceEvent -#define soap_write_PointerToswad__attendanceEvent(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__attendanceEvent(soap, data),0) || soap_put_PointerToswad__attendanceEvent(soap, data, "swad:attendanceEvent", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__attendanceEvent ** SOAP_FMAC4 soap_get_PointerToswad__attendanceEvent(struct soap*, struct swad__attendanceEvent **, const char*, const char*); - -#ifndef soap_read_PointerToswad__attendanceEvent -#define soap_read_PointerToswad__attendanceEvent(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__attendanceEvent(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__user -#define SOAP_TYPE_PointerToswad__user (47) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__user(struct soap*, struct swad__user *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__user(struct soap*, const char *, int, struct swad__user *const*, const char *); -SOAP_FMAC3 struct swad__user ** SOAP_FMAC4 soap_in_PointerToswad__user(struct soap*, const char*, struct swad__user **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__user(struct soap*, struct swad__user *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__user -#define soap_write_PointerToswad__user(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__user(soap, data),0) || soap_put_PointerToswad__user(soap, data, "swad:user", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__user ** SOAP_FMAC4 soap_get_PointerToswad__user(struct soap*, struct swad__user **, const char*, const char*); - -#ifndef soap_read_PointerToswad__user -#define soap_read_PointerToswad__user(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__user(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__questionTag -#define SOAP_TYPE_PointerToswad__questionTag (43) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__questionTag(struct soap*, struct swad__questionTag *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__questionTag(struct soap*, const char *, int, struct swad__questionTag *const*, const char *); -SOAP_FMAC3 struct swad__questionTag ** SOAP_FMAC4 soap_in_PointerToswad__questionTag(struct soap*, const char*, struct swad__questionTag **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__questionTag(struct soap*, struct swad__questionTag *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__questionTag -#define soap_write_PointerToswad__questionTag(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__questionTag(soap, data),0) || soap_put_PointerToswad__questionTag(soap, data, "swad:questionTag", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__questionTag ** SOAP_FMAC4 soap_get_PointerToswad__questionTag(struct soap*, struct swad__questionTag **, const char*, const char*); - -#ifndef soap_read_PointerToswad__questionTag -#define soap_read_PointerToswad__questionTag(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__questionTag(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__answer -#define SOAP_TYPE_PointerToswad__answer (40) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__answer(struct soap*, struct swad__answer *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__answer(struct soap*, const char *, int, struct swad__answer *const*, const char *); -SOAP_FMAC3 struct swad__answer ** SOAP_FMAC4 soap_in_PointerToswad__answer(struct soap*, const char*, struct swad__answer **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__answer(struct soap*, struct swad__answer *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__answer -#define soap_write_PointerToswad__answer(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__answer(soap, data),0) || soap_put_PointerToswad__answer(soap, data, "swad:answer", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__answer ** SOAP_FMAC4 soap_get_PointerToswad__answer(struct soap*, struct swad__answer **, const char*, const char*); - -#ifndef soap_read_PointerToswad__answer -#define soap_read_PointerToswad__answer(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__answer(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__question -#define SOAP_TYPE_PointerToswad__question (37) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__question(struct soap*, struct swad__question *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__question(struct soap*, const char *, int, struct swad__question *const*, const char *); -SOAP_FMAC3 struct swad__question ** SOAP_FMAC4 soap_in_PointerToswad__question(struct soap*, const char*, struct swad__question **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__question(struct soap*, struct swad__question *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__question -#define soap_write_PointerToswad__question(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__question(soap, data),0) || soap_put_PointerToswad__question(soap, data, "swad:question", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__question ** SOAP_FMAC4 soap_get_PointerToswad__question(struct soap*, struct swad__question **, const char*, const char*); - -#ifndef soap_read_PointerToswad__question -#define soap_read_PointerToswad__question(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__question(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__tag -#define SOAP_TYPE_PointerToswad__tag (34) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__tag(struct soap*, struct swad__tag *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__tag(struct soap*, const char *, int, struct swad__tag *const*, const char *); -SOAP_FMAC3 struct swad__tag ** SOAP_FMAC4 soap_in_PointerToswad__tag(struct soap*, const char*, struct swad__tag **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__tag(struct soap*, struct swad__tag *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__tag -#define soap_write_PointerToswad__tag(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__tag(soap, data),0) || soap_put_PointerToswad__tag(soap, data, "swad:tag", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__tag ** SOAP_FMAC4 soap_get_PointerToswad__tag(struct soap*, struct swad__tag **, const char*, const char*); - -#ifndef soap_read_PointerToswad__tag -#define soap_read_PointerToswad__tag(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__tag(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__notification -#define SOAP_TYPE_PointerToswad__notification (28) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__notification(struct soap*, struct swad__notification *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__notification(struct soap*, const char *, int, struct swad__notification *const*, const char *); -SOAP_FMAC3 struct swad__notification ** SOAP_FMAC4 soap_in_PointerToswad__notification(struct soap*, const char*, struct swad__notification **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__notification(struct soap*, struct swad__notification *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__notification -#define soap_write_PointerToswad__notification(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__notification(soap, data),0) || soap_put_PointerToswad__notification(soap, data, "swad:notification", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__notification ** SOAP_FMAC4 soap_get_PointerToswad__notification(struct soap*, struct swad__notification **, const char*, const char*); - -#ifndef soap_read_PointerToswad__notification -#define soap_read_PointerToswad__notification(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__notification(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__group -#define SOAP_TYPE_PointerToswad__group (23) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__group(struct soap*, struct swad__group *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__group(struct soap*, const char *, int, struct swad__group *const*, const char *); -SOAP_FMAC3 struct swad__group ** SOAP_FMAC4 soap_in_PointerToswad__group(struct soap*, const char*, struct swad__group **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__group(struct soap*, struct swad__group *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__group -#define soap_write_PointerToswad__group(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__group(soap, data),0) || soap_put_PointerToswad__group(soap, data, "swad:group", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__group ** SOAP_FMAC4 soap_get_PointerToswad__group(struct soap*, struct swad__group **, const char*, const char*); - -#ifndef soap_read_PointerToswad__group -#define soap_read_PointerToswad__group(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__group(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__groupType -#define SOAP_TYPE_PointerToswad__groupType (19) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__groupType(struct soap*, struct swad__groupType *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__groupType(struct soap*, const char *, int, struct swad__groupType *const*, const char *); -SOAP_FMAC3 struct swad__groupType ** SOAP_FMAC4 soap_in_PointerToswad__groupType(struct soap*, const char*, struct swad__groupType **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__groupType(struct soap*, struct swad__groupType *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__groupType -#define soap_write_PointerToswad__groupType(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__groupType(soap, data),0) || soap_put_PointerToswad__groupType(soap, data, "swad:groupType", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__groupType ** SOAP_FMAC4 soap_get_PointerToswad__groupType(struct soap*, struct swad__groupType **, const char*, const char*); - -#ifndef soap_read_PointerToswad__groupType -#define soap_read_PointerToswad__groupType(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__groupType(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_PointerToswad__course -#define SOAP_TYPE_PointerToswad__course (13) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToswad__course(struct soap*, struct swad__course *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToswad__course(struct soap*, const char *, int, struct swad__course *const*, const char *); -SOAP_FMAC3 struct swad__course ** SOAP_FMAC4 soap_in_PointerToswad__course(struct soap*, const char*, struct swad__course **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToswad__course(struct soap*, struct swad__course *const*, const char*, const char*); - -#ifndef soap_write_PointerToswad__course -#define soap_write_PointerToswad__course(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToswad__course(soap, data),0) || soap_put_PointerToswad__course(soap, data, "swad:course", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 struct swad__course ** SOAP_FMAC4 soap_get_PointerToswad__course(struct soap*, struct swad__course **, const char*, const char*); - -#ifndef soap_read_PointerToswad__course -#define soap_read_PointerToswad__course(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToswad__course(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE__QName -#define SOAP_TYPE__QName (5) -#endif - -#define soap_default__QName(soap, a) soap_default_string(soap, a) - -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap*, char *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap*, const char*, int, char*const*, const char*); -SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap*, const char*, char **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap*, char *const*, const char*, const char*); - -#ifndef soap_write__QName -#define soap_write__QName(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize__QName(soap, data),0) || soap_put__QName(soap, data, "byte", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap*, char **, const char*, const char*); - -#ifndef soap_read__QName -#define soap_read__QName(soap, data) ( soap_begin_recv(soap) || !soap_get__QName(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifndef SOAP_TYPE_string -#define SOAP_TYPE_string (4) -#endif -SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap*, char **); -SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap*, char *const*); -SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap*, const char*, int, char*const*, const char*); -SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap*, const char*, char **, const char*); -SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap*, char *const*, const char*, const char*); - -#ifndef soap_write_string -#define soap_write_string(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_string(soap, data),0) || soap_put_string(soap, data, "byte", NULL) || soap_end_send(soap), (soap)->error ) -#endif - -SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap*, char **, const char*, const char*); - -#ifndef soap_read_string -#define soap_read_string(soap, data) ( soap_begin_recv(soap) || !soap_get_string(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error ) -#endif - - -#ifdef __cplusplus -} -#endif - -#endif - -/* End of soapH.h */ diff --git a/soap/soapServer.c b/soap/soapServer.c deleted file mode 100644 index cb422d90..00000000 --- a/soap/soapServer.c +++ /dev/null @@ -1,1064 +0,0 @@ -/* soapServer.c - Generated by gSOAP 2.8.18 from swad_web_service.h - -Copyright(C) 2000-2014, Robert van Engelen, Genivia Inc. All Rights Reserved. -The generated code is released under one of the following licenses: -GPL or Genivia's license for commercial use. -This program is released under the GPL with the additional exemption that -compiling, linking, and/or using OpenSSL is allowed. -*/ - -#if defined(__BORLANDC__) -#pragma option push -w-8060 -#pragma option push -w-8004 -#endif -#include "soapH.h" -#ifdef __cplusplus -extern "C" { -#endif - -SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.8.18 2014-12-03 18:12:24 GMT") - - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap) -{ -#ifndef WITH_FASTCGI - unsigned int k = soap->max_keep_alive; -#endif - do - { -#ifndef WITH_FASTCGI - if (soap->max_keep_alive > 0 && !--k) - soap->keep_alive = 0; -#endif - if (soap_begin_serve(soap)) - { if (soap->error >= SOAP_STOP) - continue; - return soap->error; - } - if (soap_serve_request(soap) || (soap->fserveloop && soap->fserveloop(soap))) - { -#ifdef WITH_FASTCGI - soap_send_fault(soap); -#else - return soap_send_fault(soap); -#endif - } - -#ifdef WITH_FASTCGI - soap_destroy(soap); - soap_end(soap); - } while (1); -#else - } while (soap->keep_alive); -#endif - return SOAP_OK; -} - -#ifndef WITH_NOSERVEREQUEST -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap) -{ - soap_peek_element(soap); - if (!soap_match_tag(soap, soap->tag, "swad:createAccount")) - return soap_serve_swad__createAccount(soap); - if (!soap_match_tag(soap, soap->tag, "swad:loginByUserPasswordKey")) - return soap_serve_swad__loginByUserPasswordKey(soap); - if (!soap_match_tag(soap, soap->tag, "swad:loginBySessionKey")) - return soap_serve_swad__loginBySessionKey(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getNewPassword")) - return soap_serve_swad__getNewPassword(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getCourses")) - return soap_serve_swad__getCourses(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getCourseInfo")) - return soap_serve_swad__getCourseInfo(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getGroupTypes")) - return soap_serve_swad__getGroupTypes(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getGroups")) - return soap_serve_swad__getGroups(soap); - if (!soap_match_tag(soap, soap->tag, "swad:sendMyGroups")) - return soap_serve_swad__sendMyGroups(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getDirectoryTree")) - return soap_serve_swad__getDirectoryTree(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getFile")) - return soap_serve_swad__getFile(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getMarks")) - return soap_serve_swad__getMarks(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getTestConfig")) - return soap_serve_swad__getTestConfig(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getTests")) - return soap_serve_swad__getTests(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getUsers")) - return soap_serve_swad__getUsers(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getAttendanceEvents")) - return soap_serve_swad__getAttendanceEvents(soap); - if (!soap_match_tag(soap, soap->tag, "swad:sendAttendanceEvent")) - return soap_serve_swad__sendAttendanceEvent(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getAttendanceUsers")) - return soap_serve_swad__getAttendanceUsers(soap); - if (!soap_match_tag(soap, soap->tag, "swad:sendAttendanceUsers")) - return soap_serve_swad__sendAttendanceUsers(soap); - if (!soap_match_tag(soap, soap->tag, "swad:getNotifications")) - return soap_serve_swad__getNotifications(soap); - if (!soap_match_tag(soap, soap->tag, "swad:markNotificationsAsRead")) - return soap_serve_swad__markNotificationsAsRead(soap); - if (!soap_match_tag(soap, soap->tag, "swad:sendNotice")) - return soap_serve_swad__sendNotice(soap); - if (!soap_match_tag(soap, soap->tag, "swad:sendMessage")) - return soap_serve_swad__sendMessage(soap); - return soap->error = SOAP_NO_METHOD; -} -#endif - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__createAccount(struct soap *soap) -{ struct swad__createAccount soap_tmp_swad__createAccount; - struct swad__createAccountOutput createAccountOut; - soap_default_swad__createAccountOutput(soap, &createAccountOut); - soap_default_swad__createAccount(soap, &soap_tmp_swad__createAccount); - if (!soap_get_swad__createAccount(soap, &soap_tmp_swad__createAccount, "swad:createAccount", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__createAccount(soap, soap_tmp_swad__createAccount.userNickname, soap_tmp_swad__createAccount.userEmail, soap_tmp_swad__createAccount.userID, soap_tmp_swad__createAccount.userPassword, soap_tmp_swad__createAccount.appKey, &createAccountOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__createAccountOutput(soap, &createAccountOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__createAccountOutput(soap, &createAccountOut, "swad:createAccountOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__createAccountOutput(soap, &createAccountOut, "swad:createAccountOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__loginByUserPasswordKey(struct soap *soap) -{ struct swad__loginByUserPasswordKey soap_tmp_swad__loginByUserPasswordKey; - struct swad__loginByUserPasswordKeyOutput loginByUserPasswordKeyOut; - soap_default_swad__loginByUserPasswordKeyOutput(soap, &loginByUserPasswordKeyOut); - soap_default_swad__loginByUserPasswordKey(soap, &soap_tmp_swad__loginByUserPasswordKey); - if (!soap_get_swad__loginByUserPasswordKey(soap, &soap_tmp_swad__loginByUserPasswordKey, "swad:loginByUserPasswordKey", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__loginByUserPasswordKey(soap, soap_tmp_swad__loginByUserPasswordKey.userID, soap_tmp_swad__loginByUserPasswordKey.userPassword, soap_tmp_swad__loginByUserPasswordKey.appKey, &loginByUserPasswordKeyOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__loginByUserPasswordKeyOutput(soap, &loginByUserPasswordKeyOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__loginByUserPasswordKeyOutput(soap, &loginByUserPasswordKeyOut, "swad:loginByUserPasswordKeyOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__loginByUserPasswordKeyOutput(soap, &loginByUserPasswordKeyOut, "swad:loginByUserPasswordKeyOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__loginBySessionKey(struct soap *soap) -{ struct swad__loginBySessionKey soap_tmp_swad__loginBySessionKey; - struct swad__loginBySessionKeyOutput loginBySessionKeyOut; - soap_default_swad__loginBySessionKeyOutput(soap, &loginBySessionKeyOut); - soap_default_swad__loginBySessionKey(soap, &soap_tmp_swad__loginBySessionKey); - if (!soap_get_swad__loginBySessionKey(soap, &soap_tmp_swad__loginBySessionKey, "swad:loginBySessionKey", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__loginBySessionKey(soap, soap_tmp_swad__loginBySessionKey.sessionID, soap_tmp_swad__loginBySessionKey.appKey, &loginBySessionKeyOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__loginBySessionKeyOutput(soap, &loginBySessionKeyOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__loginBySessionKeyOutput(soap, &loginBySessionKeyOut, "swad:loginBySessionKeyOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__loginBySessionKeyOutput(soap, &loginBySessionKeyOut, "swad:loginBySessionKeyOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getNewPassword(struct soap *soap) -{ struct swad__getNewPassword soap_tmp_swad__getNewPassword; - struct swad__getNewPasswordOutput getNewPasswordOut; - soap_default_swad__getNewPasswordOutput(soap, &getNewPasswordOut); - soap_default_swad__getNewPassword(soap, &soap_tmp_swad__getNewPassword); - if (!soap_get_swad__getNewPassword(soap, &soap_tmp_swad__getNewPassword, "swad:getNewPassword", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getNewPassword(soap, soap_tmp_swad__getNewPassword.userID, soap_tmp_swad__getNewPassword.appKey, &getNewPasswordOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getNewPasswordOutput(soap, &getNewPasswordOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getNewPasswordOutput(soap, &getNewPasswordOut, "swad:getNewPasswordOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getNewPasswordOutput(soap, &getNewPasswordOut, "swad:getNewPasswordOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getCourses(struct soap *soap) -{ struct swad__getCourses soap_tmp_swad__getCourses; - struct swad__getCoursesOutput getCoursesOut; - soap_default_swad__getCoursesOutput(soap, &getCoursesOut); - soap_default_swad__getCourses(soap, &soap_tmp_swad__getCourses); - if (!soap_get_swad__getCourses(soap, &soap_tmp_swad__getCourses, "swad:getCourses", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getCourses(soap, soap_tmp_swad__getCourses.wsKey, &getCoursesOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getCoursesOutput(soap, &getCoursesOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getCoursesOutput(soap, &getCoursesOut, "swad:getCoursesOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getCoursesOutput(soap, &getCoursesOut, "swad:getCoursesOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getCourseInfo(struct soap *soap) -{ struct swad__getCourseInfo soap_tmp_swad__getCourseInfo; - struct swad__getCourseInfoOutput getCourseInfoOut; - soap_default_swad__getCourseInfoOutput(soap, &getCourseInfoOut); - soap_default_swad__getCourseInfo(soap, &soap_tmp_swad__getCourseInfo); - if (!soap_get_swad__getCourseInfo(soap, &soap_tmp_swad__getCourseInfo, "swad:getCourseInfo", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getCourseInfo(soap, soap_tmp_swad__getCourseInfo.wsKey, soap_tmp_swad__getCourseInfo.courseCode, soap_tmp_swad__getCourseInfo.infoType, &getCourseInfoOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getCourseInfoOutput(soap, &getCourseInfoOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getCourseInfoOutput(soap, &getCourseInfoOut, "swad:getCourseInfoOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getCourseInfoOutput(soap, &getCourseInfoOut, "swad:getCourseInfoOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getGroupTypes(struct soap *soap) -{ struct swad__getGroupTypes soap_tmp_swad__getGroupTypes; - struct swad__getGroupTypesOutput getGroupTypesOut; - soap_default_swad__getGroupTypesOutput(soap, &getGroupTypesOut); - soap_default_swad__getGroupTypes(soap, &soap_tmp_swad__getGroupTypes); - if (!soap_get_swad__getGroupTypes(soap, &soap_tmp_swad__getGroupTypes, "swad:getGroupTypes", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getGroupTypes(soap, soap_tmp_swad__getGroupTypes.wsKey, soap_tmp_swad__getGroupTypes.courseCode, &getGroupTypesOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getGroupTypesOutput(soap, &getGroupTypesOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getGroupTypesOutput(soap, &getGroupTypesOut, "swad:getGroupTypesOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getGroupTypesOutput(soap, &getGroupTypesOut, "swad:getGroupTypesOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getGroups(struct soap *soap) -{ struct swad__getGroups soap_tmp_swad__getGroups; - struct swad__getGroupsOutput getGroupsOut; - soap_default_swad__getGroupsOutput(soap, &getGroupsOut); - soap_default_swad__getGroups(soap, &soap_tmp_swad__getGroups); - if (!soap_get_swad__getGroups(soap, &soap_tmp_swad__getGroups, "swad:getGroups", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getGroups(soap, soap_tmp_swad__getGroups.wsKey, soap_tmp_swad__getGroups.courseCode, &getGroupsOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getGroupsOutput(soap, &getGroupsOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getGroupsOutput(soap, &getGroupsOut, "swad:getGroupsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getGroupsOutput(soap, &getGroupsOut, "swad:getGroupsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendMyGroups(struct soap *soap) -{ struct swad__sendMyGroups soap_tmp_swad__sendMyGroups; - struct swad__sendMyGroupsOutput sendMyGroupsOut; - soap_default_swad__sendMyGroupsOutput(soap, &sendMyGroupsOut); - soap_default_swad__sendMyGroups(soap, &soap_tmp_swad__sendMyGroups); - if (!soap_get_swad__sendMyGroups(soap, &soap_tmp_swad__sendMyGroups, "swad:sendMyGroups", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__sendMyGroups(soap, soap_tmp_swad__sendMyGroups.wsKey, soap_tmp_swad__sendMyGroups.courseCode, soap_tmp_swad__sendMyGroups.myGroups, &sendMyGroupsOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__sendMyGroupsOutput(soap, &sendMyGroupsOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendMyGroupsOutput(soap, &sendMyGroupsOut, "swad:sendMyGroupsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendMyGroupsOutput(soap, &sendMyGroupsOut, "swad:sendMyGroupsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getDirectoryTree(struct soap *soap) -{ struct swad__getDirectoryTree soap_tmp_swad__getDirectoryTree; - struct swad__getDirectoryTreeOutput getDirectoryTreeOut; - soap_default_swad__getDirectoryTreeOutput(soap, &getDirectoryTreeOut); - soap_default_swad__getDirectoryTree(soap, &soap_tmp_swad__getDirectoryTree); - if (!soap_get_swad__getDirectoryTree(soap, &soap_tmp_swad__getDirectoryTree, "swad:getDirectoryTree", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getDirectoryTree(soap, soap_tmp_swad__getDirectoryTree.wsKey, soap_tmp_swad__getDirectoryTree.courseCode, soap_tmp_swad__getDirectoryTree.groupCode, soap_tmp_swad__getDirectoryTree.treeCode, &getDirectoryTreeOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getDirectoryTreeOutput(soap, &getDirectoryTreeOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getDirectoryTreeOutput(soap, &getDirectoryTreeOut, "swad:getDirectoryTreeOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getDirectoryTreeOutput(soap, &getDirectoryTreeOut, "swad:getDirectoryTreeOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getFile(struct soap *soap) -{ struct swad__getFile soap_tmp_swad__getFile; - struct swad__getFileOutput getFileOut; - soap_default_swad__getFileOutput(soap, &getFileOut); - soap_default_swad__getFile(soap, &soap_tmp_swad__getFile); - if (!soap_get_swad__getFile(soap, &soap_tmp_swad__getFile, "swad:getFile", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getFile(soap, soap_tmp_swad__getFile.wsKey, soap_tmp_swad__getFile.fileCode, &getFileOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getFileOutput(soap, &getFileOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getFileOutput(soap, &getFileOut, "swad:getFileOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getFileOutput(soap, &getFileOut, "swad:getFileOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getMarks(struct soap *soap) -{ struct swad__getMarks soap_tmp_swad__getMarks; - struct swad__getMarksOutput getMarksOut; - soap_default_swad__getMarksOutput(soap, &getMarksOut); - soap_default_swad__getMarks(soap, &soap_tmp_swad__getMarks); - if (!soap_get_swad__getMarks(soap, &soap_tmp_swad__getMarks, "swad:getMarks", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getMarks(soap, soap_tmp_swad__getMarks.wsKey, soap_tmp_swad__getMarks.fileCode, &getMarksOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getMarksOutput(soap, &getMarksOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getMarksOutput(soap, &getMarksOut, "swad:getMarksOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getMarksOutput(soap, &getMarksOut, "swad:getMarksOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getTestConfig(struct soap *soap) -{ struct swad__getTestConfig soap_tmp_swad__getTestConfig; - struct swad__getTestConfigOutput getTestConfigOut; - soap_default_swad__getTestConfigOutput(soap, &getTestConfigOut); - soap_default_swad__getTestConfig(soap, &soap_tmp_swad__getTestConfig); - if (!soap_get_swad__getTestConfig(soap, &soap_tmp_swad__getTestConfig, "swad:getTestConfig", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getTestConfig(soap, soap_tmp_swad__getTestConfig.wsKey, soap_tmp_swad__getTestConfig.courseCode, &getTestConfigOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getTestConfigOutput(soap, &getTestConfigOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getTestConfigOutput(soap, &getTestConfigOut, "swad:getTestConfigOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getTestConfigOutput(soap, &getTestConfigOut, "swad:getTestConfigOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getTests(struct soap *soap) -{ struct swad__getTests soap_tmp_swad__getTests; - struct swad__getTestsOutput getTestsOut; - soap_default_swad__getTestsOutput(soap, &getTestsOut); - soap_default_swad__getTests(soap, &soap_tmp_swad__getTests); - if (!soap_get_swad__getTests(soap, &soap_tmp_swad__getTests, "swad:getTests", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getTests(soap, soap_tmp_swad__getTests.wsKey, soap_tmp_swad__getTests.courseCode, soap_tmp_swad__getTests.beginTime, &getTestsOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getTestsOutput(soap, &getTestsOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getTestsOutput(soap, &getTestsOut, "swad:getTestsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getTestsOutput(soap, &getTestsOut, "swad:getTestsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getUsers(struct soap *soap) -{ struct swad__getUsers soap_tmp_swad__getUsers; - struct swad__getUsersOutput getUsersOut; - soap_default_swad__getUsersOutput(soap, &getUsersOut); - soap_default_swad__getUsers(soap, &soap_tmp_swad__getUsers); - if (!soap_get_swad__getUsers(soap, &soap_tmp_swad__getUsers, "swad:getUsers", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getUsers(soap, soap_tmp_swad__getUsers.wsKey, soap_tmp_swad__getUsers.courseCode, soap_tmp_swad__getUsers.groupCode, soap_tmp_swad__getUsers.userRole, &getUsersOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getUsersOutput(soap, &getUsersOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getUsersOutput(soap, &getUsersOut, "swad:getUsersOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getUsersOutput(soap, &getUsersOut, "swad:getUsersOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getAttendanceEvents(struct soap *soap) -{ struct swad__getAttendanceEvents soap_tmp_swad__getAttendanceEvents; - struct swad__getAttendanceEventsOutput getAttendanceEventsOut; - soap_default_swad__getAttendanceEventsOutput(soap, &getAttendanceEventsOut); - soap_default_swad__getAttendanceEvents(soap, &soap_tmp_swad__getAttendanceEvents); - if (!soap_get_swad__getAttendanceEvents(soap, &soap_tmp_swad__getAttendanceEvents, "swad:getAttendanceEvents", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getAttendanceEvents(soap, soap_tmp_swad__getAttendanceEvents.wsKey, soap_tmp_swad__getAttendanceEvents.courseCode, &getAttendanceEventsOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getAttendanceEventsOutput(soap, &getAttendanceEventsOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getAttendanceEventsOutput(soap, &getAttendanceEventsOut, "swad:getAttendanceEventsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getAttendanceEventsOutput(soap, &getAttendanceEventsOut, "swad:getAttendanceEventsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendAttendanceEvent(struct soap *soap) -{ struct swad__sendAttendanceEvent soap_tmp_swad__sendAttendanceEvent; - struct swad__sendAttendanceEventOutput sendAttendanceEventOut; - soap_default_swad__sendAttendanceEventOutput(soap, &sendAttendanceEventOut); - soap_default_swad__sendAttendanceEvent(soap, &soap_tmp_swad__sendAttendanceEvent); - if (!soap_get_swad__sendAttendanceEvent(soap, &soap_tmp_swad__sendAttendanceEvent, "swad:sendAttendanceEvent", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__sendAttendanceEvent(soap, soap_tmp_swad__sendAttendanceEvent.wsKey, soap_tmp_swad__sendAttendanceEvent.attendanceEventCode, soap_tmp_swad__sendAttendanceEvent.courseCode, soap_tmp_swad__sendAttendanceEvent.hidden, soap_tmp_swad__sendAttendanceEvent.startTime, soap_tmp_swad__sendAttendanceEvent.endTime, soap_tmp_swad__sendAttendanceEvent.commentsTeachersVisible, soap_tmp_swad__sendAttendanceEvent.title, soap_tmp_swad__sendAttendanceEvent.text, soap_tmp_swad__sendAttendanceEvent.groups, &sendAttendanceEventOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__sendAttendanceEventOutput(soap, &sendAttendanceEventOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendAttendanceEventOutput(soap, &sendAttendanceEventOut, "swad:sendAttendanceEventOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendAttendanceEventOutput(soap, &sendAttendanceEventOut, "swad:sendAttendanceEventOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getAttendanceUsers(struct soap *soap) -{ struct swad__getAttendanceUsers soap_tmp_swad__getAttendanceUsers; - struct swad__getAttendanceUsersOutput getAttendanceUsersOut; - soap_default_swad__getAttendanceUsersOutput(soap, &getAttendanceUsersOut); - soap_default_swad__getAttendanceUsers(soap, &soap_tmp_swad__getAttendanceUsers); - if (!soap_get_swad__getAttendanceUsers(soap, &soap_tmp_swad__getAttendanceUsers, "swad:getAttendanceUsers", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getAttendanceUsers(soap, soap_tmp_swad__getAttendanceUsers.wsKey, soap_tmp_swad__getAttendanceUsers.attendanceEventCode, &getAttendanceUsersOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getAttendanceUsersOutput(soap, &getAttendanceUsersOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getAttendanceUsersOutput(soap, &getAttendanceUsersOut, "swad:getAttendanceUsersOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getAttendanceUsersOutput(soap, &getAttendanceUsersOut, "swad:getAttendanceUsersOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendAttendanceUsers(struct soap *soap) -{ struct swad__sendAttendanceUsers soap_tmp_swad__sendAttendanceUsers; - struct swad__sendAttendanceUsersOutput sendAttendanceUsersOut; - soap_default_swad__sendAttendanceUsersOutput(soap, &sendAttendanceUsersOut); - soap_default_swad__sendAttendanceUsers(soap, &soap_tmp_swad__sendAttendanceUsers); - if (!soap_get_swad__sendAttendanceUsers(soap, &soap_tmp_swad__sendAttendanceUsers, "swad:sendAttendanceUsers", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__sendAttendanceUsers(soap, soap_tmp_swad__sendAttendanceUsers.wsKey, soap_tmp_swad__sendAttendanceUsers.attendanceEventCode, soap_tmp_swad__sendAttendanceUsers.users, soap_tmp_swad__sendAttendanceUsers.setOthersAsAbsent, &sendAttendanceUsersOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__sendAttendanceUsersOutput(soap, &sendAttendanceUsersOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendAttendanceUsersOutput(soap, &sendAttendanceUsersOut, "swad:sendAttendanceUsersOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendAttendanceUsersOutput(soap, &sendAttendanceUsersOut, "swad:sendAttendanceUsersOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getNotifications(struct soap *soap) -{ struct swad__getNotifications soap_tmp_swad__getNotifications; - struct swad__getNotificationsOutput getNotificationsOut; - soap_default_swad__getNotificationsOutput(soap, &getNotificationsOut); - soap_default_swad__getNotifications(soap, &soap_tmp_swad__getNotifications); - if (!soap_get_swad__getNotifications(soap, &soap_tmp_swad__getNotifications, "swad:getNotifications", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__getNotifications(soap, soap_tmp_swad__getNotifications.wsKey, soap_tmp_swad__getNotifications.beginTime, &getNotificationsOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__getNotificationsOutput(soap, &getNotificationsOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getNotificationsOutput(soap, &getNotificationsOut, "swad:getNotificationsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__getNotificationsOutput(soap, &getNotificationsOut, "swad:getNotificationsOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__markNotificationsAsRead(struct soap *soap) -{ struct swad__markNotificationsAsRead soap_tmp_swad__markNotificationsAsRead; - struct swad__markNotificationsAsReadOutput markNotificationAsReadOut; - soap_default_swad__markNotificationsAsReadOutput(soap, &markNotificationAsReadOut); - soap_default_swad__markNotificationsAsRead(soap, &soap_tmp_swad__markNotificationsAsRead); - if (!soap_get_swad__markNotificationsAsRead(soap, &soap_tmp_swad__markNotificationsAsRead, "swad:markNotificationsAsRead", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__markNotificationsAsRead(soap, soap_tmp_swad__markNotificationsAsRead.wsKey, soap_tmp_swad__markNotificationsAsRead.notifications, &markNotificationAsReadOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__markNotificationsAsReadOutput(soap, &markNotificationAsReadOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__markNotificationsAsReadOutput(soap, &markNotificationAsReadOut, "swad:markNotificationsAsReadOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__markNotificationsAsReadOutput(soap, &markNotificationAsReadOut, "swad:markNotificationsAsReadOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendNotice(struct soap *soap) -{ struct swad__sendNotice soap_tmp_swad__sendNotice; - struct swad__sendNoticeOutput sendNoticeOut; - soap_default_swad__sendNoticeOutput(soap, &sendNoticeOut); - soap_default_swad__sendNotice(soap, &soap_tmp_swad__sendNotice); - if (!soap_get_swad__sendNotice(soap, &soap_tmp_swad__sendNotice, "swad:sendNotice", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__sendNotice(soap, soap_tmp_swad__sendNotice.wsKey, soap_tmp_swad__sendNotice.courseCode, soap_tmp_swad__sendNotice.body, &sendNoticeOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__sendNoticeOutput(soap, &sendNoticeOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendNoticeOutput(soap, &sendNoticeOut, "swad:sendNoticeOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendNoticeOutput(soap, &sendNoticeOut, "swad:sendNoticeOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendMessage(struct soap *soap) -{ struct swad__sendMessage soap_tmp_swad__sendMessage; - struct swad__sendMessageOutput sendMessageOut; - soap_default_swad__sendMessageOutput(soap, &sendMessageOut); - soap_default_swad__sendMessage(soap, &soap_tmp_swad__sendMessage); - if (!soap_get_swad__sendMessage(soap, &soap_tmp_swad__sendMessage, "swad:sendMessage", NULL)) - return soap->error; - if (soap_body_end_in(soap) - || soap_envelope_end_in(soap) - || soap_end_recv(soap)) - return soap->error; - soap->error = swad__sendMessage(soap, soap_tmp_swad__sendMessage.wsKey, soap_tmp_swad__sendMessage.messageCode, soap_tmp_swad__sendMessage.to, soap_tmp_swad__sendMessage.subject, soap_tmp_swad__sendMessage.body, &sendMessageOut); - if (soap->error) - return soap->error; - soap->encodingStyle = NULL; - soap_serializeheader(soap); - soap_serialize_swad__sendMessageOutput(soap, &sendMessageOut); - if (soap_begin_count(soap)) - return soap->error; - if (soap->mode & SOAP_IO_LENGTH) - { if (soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendMessageOutput(soap, &sendMessageOut, "swad:sendMessageOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap)) - return soap->error; - }; - if (soap_end_count(soap) - || soap_response(soap, SOAP_OK) - || soap_envelope_begin_out(soap) - || soap_putheader(soap) - || soap_body_begin_out(soap) - || soap_put_swad__sendMessageOutput(soap, &sendMessageOut, "swad:sendMessageOutput", NULL) - || soap_body_end_out(soap) - || soap_envelope_end_out(soap) - || soap_end_send(soap)) - return soap->error; - return soap_closesock(soap); -} - -#ifdef __cplusplus -} -#endif - -#if defined(__BORLANDC__) -#pragma option pop -#pragma option pop -#endif - -/* End of soapServer.c */ diff --git a/soap/soapServer.o b/soap/soapServer.o deleted file mode 100644 index cce3756ea75accba501cea06f69cb6eb0a16da19..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 44056 zcmeI53wRaPwZ{*SDhMX=S$x&lMhYrvP%2231`QYx6fID|M+oFZqL9So1c@(DKtUd2 zMXUItm0BKF>AgM>tI~oBzDldriq_hzqOoXc_0zUexogeredag&%nr0v@BR9*zwdBn z|K>k?ueI0ObLPzKL#7TGGO%r%HYr=$r23_znx(1Kls?gRX|P$E%1d=heW!f(r{&YP z3@e|PDJpnZcj#7O`Rw0Em7W_`2RkgAxhB)u3UqtU^o4(ElPaISZrIstBi{5bwqGls zS5{OoWX_PH(jjxoiu#nxR!RAs;YHmS*UU^-G=lg{ZewNu|0t|L_?>)J?qWgD8iiI(xIVGdmDjQtrgM zARFuYv)ASyUYfFp&Ro;<7Pfz@0WQ!0cNij(FD#$at0>xS0{pO$oB&6uXVOhtzBV_w z87BZ$PJOu6HIuVGg$b>}?c->>IrT11y@S-_!TlHmtSxSK>MuFX)Eiy`beHsaCu3T{kUArCo^cmT5bRuY@*;>O2i}HdZFIk0pgRD~se!*X4$`*%|&C zr#@Qio|$rzqwV3;4|D2!OFbUiPcgh2+CMt=SDpGZTK8CUpQF9gsbA;Rr=s36MJm+` z%zTwuu{q%!n9#2~WAm~zw(#t=)eA86*-0)lY?DsaE_x!CApIc{nQ;C*C!EnqBN8_) z41!q=a#ggQKeNFZ{Bb(?_Ok`n@!aye)$2;|| zPW?cs$K%=FQGA3^)~LMY)L+zk!t_w>Do4B2so(6>XQAG5rBssQx$E;&BHG&g98y%M zb9B(`H_SA(A82NdKAIEP#5uYkn4=d&QO%!ui8HnrIQ20ajl_9c>L^Q`dZA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YD-R-~vsdP!*Y2ZQ$lKMMS0@V?;R0v`-M z2z(UyFz{;d?}BH*&jY^-JPp18d?NU*;EmvSgI@yvQ}8Rne+E7ad_DM0;4gw-2mX8T z{{nvxdUB2R7y|33I*;DxfSMdPk7TguFa<@WDiO>nsVdsA~AzSw+7>b1QV z+m8KvN-u^u%kAGU`m4hWI)&iSHsQN%$NqhuQit2WhogUAOpDdqzdtj};bZmUPRczF zw|`&7{v89`PO!*b^dC8T`}ae-s8EX4+rQUwqQmXq#~ABy`}ZhjINbjIhoug;e{bPg vhugnzu+`!A?+NU0t{-)`zU=?s-^bzh|I0te;r9QhzpcG`8~JPhzxn?KhoUu7 diff --git a/soap/soapServerLib.c b/soap/soapServerLib.c deleted file mode 100644 index 4cfcafef..00000000 --- a/soap/soapServerLib.c +++ /dev/null @@ -1,20 +0,0 @@ -/* soapServerLib.c - Generated by gSOAP 2.8.18 from swad_web_service.h - -Copyright(C) 2000-2014, Robert van Engelen, Genivia Inc. All Rights Reserved. -The generated code is released under one of the following licenses: -GPL or Genivia's license for commercial use. -This program is released under the GPL with the additional exemption that -compiling, linking, and/or using OpenSSL is allowed. -*/ - -/** Use this file in your project build instead of the two files soapC.c and soapServer.c. This hides the serializer functions and avoids linking problems when linking multiple clients and servers. */ - -#ifndef WITH_NOGLOBAL -#define WITH_NOGLOBAL -#endif -#define SOAP_FMAC3 static -#include "soapC.c" -#include "soapServer.c" - -/* End of soapServerLib.c */ diff --git a/soap/soapStub.h b/soap/soapStub.h deleted file mode 100644 index 94c8ef87..00000000 --- a/soap/soapStub.h +++ /dev/null @@ -1,1047 +0,0 @@ -/* soapStub.h - Generated by gSOAP 2.8.18 from swad_web_service.h - -Copyright(C) 2000-2014, Robert van Engelen, Genivia Inc. All Rights Reserved. -The generated code is released under one of the following licenses: -GPL or Genivia's license for commercial use. -This program is released under the GPL with the additional exemption that -compiling, linking, and/or using OpenSSL is allowed. -*/ - -#ifndef soapStub_H -#define soapStub_H -#include "stdsoap2.h" -#if GSOAP_VERSION != 20818 -# error "GSOAP VERSION MISMATCH IN GENERATED CODE: PLEASE REINSTALL PACKAGE" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/******************************************************************************\ - * * - * Enumerations * - * * -\******************************************************************************/ - - -/******************************************************************************\ - * * - * Types with Custom Serializers * - * * -\******************************************************************************/ - - -/******************************************************************************\ - * * - * Classes and Structs * - * * -\******************************************************************************/ - - -#if 0 /* volatile type: do not declare here, declared elsewhere */ - -#endif - -#ifndef SOAP_TYPE_swad__createAccountOutput -#define SOAP_TYPE_swad__createAccountOutput (7) -/* swad:createAccountOutput */ -struct swad__createAccountOutput -{ - int userCode; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - char *string; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__loginBySessionKeyOutput -#define SOAP_TYPE_swad__loginBySessionKeyOutput (8) -/* swad:loginBySessionKeyOutput */ -struct swad__loginBySessionKeyOutput -{ - int userCode; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - int degreeTypeCode; /* required element of type xsd:int */ - int degreeCode; /* required element of type xsd:int */ - int courseCode; /* required element of type xsd:int */ - char *wsKey; /* optional element of type xsd:string */ - char *userNickname; /* optional element of type xsd:string */ - char *userID; /* optional element of type xsd:string */ - char *userSurname1; /* optional element of type xsd:string */ - char *userSurname2; /* optional element of type xsd:string */ - char *userFirstname; /* optional element of type xsd:string */ - char *userPhoto; /* optional element of type xsd:string */ - char *userBirthday; /* optional element of type xsd:string */ - int userRole; /* required element of type xsd:int */ - char *degreeTypeName; /* optional element of type xsd:string */ - char *degreeName; /* optional element of type xsd:string */ - char *courseName; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__loginByUserPasswordKeyOutput -#define SOAP_TYPE_swad__loginByUserPasswordKeyOutput (9) -/* swad:loginByUserPasswordKeyOutput */ -struct swad__loginByUserPasswordKeyOutput -{ - int userCode; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - char *wsKey; /* optional element of type xsd:string */ - char *userNickname; /* optional element of type xsd:string */ - char *userID; /* optional element of type xsd:string */ - char *userSurname1; /* optional element of type xsd:string */ - char *userSurname2; /* optional element of type xsd:string */ - char *userFirstname; /* optional element of type xsd:string */ - char *userPhoto; /* optional element of type xsd:string */ - char *userBirthday; /* optional element of type xsd:string */ - int userRole; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getNewPasswordOutput -#define SOAP_TYPE_swad__getNewPasswordOutput (10) -/* swad:getNewPasswordOutput */ -struct swad__getNewPasswordOutput -{ - int success; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__course -#define SOAP_TYPE_swad__course (11) -/* swad:course */ -struct swad__course -{ - int courseCode; /* required element of type xsd:int */ - char *courseShortName; /* optional element of type xsd:string */ - char *courseFullName; /* optional element of type xsd:string */ - int userRole; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__coursesArray -#define SOAP_TYPE_swad__coursesArray (12) -/* Sequence of swad:coursesArray schema type: */ -struct swad__coursesArray -{ - struct swad__course *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getCoursesOutput -#define SOAP_TYPE_swad__getCoursesOutput (14) -/* swad:getCoursesOutput */ -struct swad__getCoursesOutput -{ - int numCourses; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__coursesArray coursesArray; /* required element of type swad:coursesArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getCourseInfoOutput -#define SOAP_TYPE_swad__getCourseInfoOutput (15) -/* swad:getCourseInfoOutput */ -struct swad__getCourseInfoOutput -{ - char *infoSrc; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ - char *infoTxt; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__groupType -#define SOAP_TYPE_swad__groupType (16) -/* swad:groupType */ -struct swad__groupType -{ - int groupTypeCode; /* required element of type xsd:int */ - char *groupTypeName; /* optional element of type xsd:string */ - int mandatory; /* required element of type xsd:int */ - int multiple; /* required element of type xsd:int */ - long openTime; /* required element of type xsd:long */ -}; -#endif - -#ifndef SOAP_TYPE_swad__groupTypesArray -#define SOAP_TYPE_swad__groupTypesArray (18) -/* Sequence of swad:groupTypesArray schema type: */ -struct swad__groupTypesArray -{ - struct swad__groupType *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getGroupTypesOutput -#define SOAP_TYPE_swad__getGroupTypesOutput (20) -/* swad:getGroupTypesOutput */ -struct swad__getGroupTypesOutput -{ - int numGroupTypes; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__groupTypesArray groupTypesArray; /* required element of type swad:groupTypesArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__group -#define SOAP_TYPE_swad__group (21) -/* swad:group */ -struct swad__group -{ - int groupCode; /* required element of type xsd:int */ - char *groupName; /* optional element of type xsd:string */ - int groupTypeCode; /* required element of type xsd:int */ - char *groupTypeName; /* optional element of type xsd:string */ - int open; /* required element of type xsd:int */ - int maxStudents; /* required element of type xsd:int */ - int numStudents; /* required element of type xsd:int */ - int fileZones; /* required element of type xsd:int */ - int member; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__groupsArray -#define SOAP_TYPE_swad__groupsArray (22) -/* Sequence of swad:groupsArray schema type: */ -struct swad__groupsArray -{ - struct swad__group *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getGroupsOutput -#define SOAP_TYPE_swad__getGroupsOutput (24) -/* swad:getGroupsOutput */ -struct swad__getGroupsOutput -{ - int numGroups; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__groupsArray groupsArray; /* required element of type swad:groupsArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendMyGroupsOutput -#define SOAP_TYPE_swad__sendMyGroupsOutput (25) -/* swad:sendMyGroupsOutput */ -struct swad__sendMyGroupsOutput -{ - int success; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - int numGroups; /* required element of type xsd:int */ - struct swad__groupsArray groupsArray; /* required element of type swad:groupsArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__notification -#define SOAP_TYPE_swad__notification (26) -/* swad:notification */ -struct swad__notification -{ - int notifCode; /* required element of type xsd:int */ - char *eventType; /* optional element of type xsd:string */ - int eventCode; /* required element of type xsd:int */ - long eventTime; /* required element of type xsd:long */ - char *userNickname; /* optional element of type xsd:string */ - char *userSurname1; /* optional element of type xsd:string */ - char *userSurname2; /* optional element of type xsd:string */ - char *userFirstname; /* optional element of type xsd:string */ - char *userPhoto; /* optional element of type xsd:string */ - char *location; /* optional element of type xsd:string */ - int status; /* required element of type xsd:int */ - char *summary; /* optional element of type xsd:string */ - char *content; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__notificationsArray -#define SOAP_TYPE_swad__notificationsArray (27) -/* Sequence of swad:notificationsArray schema type: */ -struct swad__notificationsArray -{ - struct swad__notification *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getNotificationsOutput -#define SOAP_TYPE_swad__getNotificationsOutput (29) -/* swad:getNotificationsOutput */ -struct swad__getNotificationsOutput -{ - int numNotifications; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__notificationsArray notificationsArray; /* required element of type swad:notificationsArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__markNotificationsAsReadOutput -#define SOAP_TYPE_swad__markNotificationsAsReadOutput (30) -/* swad:markNotificationsAsReadOutput */ -struct swad__markNotificationsAsReadOutput -{ - int numNotifications; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getTestConfigOutput -#define SOAP_TYPE_swad__getTestConfigOutput (31) -/* swad:getTestConfigOutput */ -struct swad__getTestConfigOutput -{ - int pluggable; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - int numQuestions; /* required element of type xsd:int */ - int minQuestions; /* required element of type xsd:int */ - int defQuestions; /* required element of type xsd:int */ - int maxQuestions; /* required element of type xsd:int */ - char *feedback; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__tag -#define SOAP_TYPE_swad__tag (32) -/* swad:tag */ -struct swad__tag -{ - int tagCode; /* required element of type xsd:int */ - char *tagText; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__tagsArray -#define SOAP_TYPE_swad__tagsArray (33) -/* Sequence of swad:tagsArray schema type: */ -struct swad__tagsArray -{ - struct swad__tag *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__question -#define SOAP_TYPE_swad__question (35) -/* swad:question */ -struct swad__question -{ - int questionCode; /* required element of type xsd:int */ - char *answerType; /* optional element of type xsd:string */ - int shuffle; /* required element of type xsd:int */ - char *stem; /* optional element of type xsd:string */ - char *feedback; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__questionsArray -#define SOAP_TYPE_swad__questionsArray (36) -/* Sequence of swad:questionsArray schema type: */ -struct swad__questionsArray -{ - struct swad__question *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__answer -#define SOAP_TYPE_swad__answer (38) -/* swad:answer */ -struct swad__answer -{ - int questionCode; /* required element of type xsd:int */ - int answerIndex; /* required element of type xsd:int */ - int correct; /* required element of type xsd:int */ - char *answerText; /* optional element of type xsd:string */ - char *answerFeedback; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__answersArray -#define SOAP_TYPE_swad__answersArray (39) -/* Sequence of swad:answersArray schema type: */ -struct swad__answersArray -{ - struct swad__answer *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__questionTag -#define SOAP_TYPE_swad__questionTag (41) -/* swad:questionTag */ -struct swad__questionTag -{ - int questionCode; /* required element of type xsd:int */ - int tagCode; /* required element of type xsd:int */ - int tagIndex; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__questionTagsArray -#define SOAP_TYPE_swad__questionTagsArray (42) -/* Sequence of swad:questionTagsArray schema type: */ -struct swad__questionTagsArray -{ - struct swad__questionTag *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getTestsOutput -#define SOAP_TYPE_swad__getTestsOutput (44) -/* swad:getTestsOutput */ -struct swad__getTestsOutput -{ - struct swad__tagsArray tagsArray; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type swad:tagsArray */ - struct swad__questionsArray questionsArray; /* required element of type swad:questionsArray */ - struct swad__answersArray answersArray; /* required element of type swad:answersArray */ - struct swad__questionTagsArray questionTagsArray; /* required element of type swad:questionTagsArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__user -#define SOAP_TYPE_swad__user (45) -/* swad:user */ -struct swad__user -{ - int userCode; /* required element of type xsd:int */ - char *userNickname; /* optional element of type xsd:string */ - char *userID; /* optional element of type xsd:string */ - char *userSurname1; /* optional element of type xsd:string */ - char *userSurname2; /* optional element of type xsd:string */ - char *userFirstname; /* optional element of type xsd:string */ - char *userPhoto; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__usersArray -#define SOAP_TYPE_swad__usersArray (46) -/* Sequence of swad:usersArray schema type: */ -struct swad__usersArray -{ - struct swad__user *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getUsersOutput -#define SOAP_TYPE_swad__getUsersOutput (48) -/* swad:getUsersOutput */ -struct swad__getUsersOutput -{ - int numUsers; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__usersArray usersArray; /* required element of type swad:usersArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__attendanceEvent -#define SOAP_TYPE_swad__attendanceEvent (49) -/* swad:attendanceEvent */ -struct swad__attendanceEvent -{ - int attendanceEventCode; /* required element of type xsd:int */ - int hidden; /* required element of type xsd:int */ - char *userSurname1; /* optional element of type xsd:string */ - char *userSurname2; /* optional element of type xsd:string */ - char *userFirstname; /* optional element of type xsd:string */ - char *userPhoto; /* optional element of type xsd:string */ - int startTime; /* required element of type xsd:int */ - int endTime; /* required element of type xsd:int */ - int commentsTeachersVisible; /* required element of type xsd:int */ - char *title; /* optional element of type xsd:string */ - char *text; /* optional element of type xsd:string */ - char *groups; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__attendanceEventsArray -#define SOAP_TYPE_swad__attendanceEventsArray (50) -/* Sequence of swad:attendanceEventsArray schema type: */ -struct swad__attendanceEventsArray -{ - struct swad__attendanceEvent *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getAttendanceEventsOutput -#define SOAP_TYPE_swad__getAttendanceEventsOutput (52) -/* swad:getAttendanceEventsOutput */ -struct swad__getAttendanceEventsOutput -{ - int numEvents; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__attendanceEventsArray eventsArray; /* required element of type swad:attendanceEventsArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendAttendanceEventOutput -#define SOAP_TYPE_swad__sendAttendanceEventOutput (53) -/* swad:sendAttendanceEventOutput */ -struct swad__sendAttendanceEventOutput -{ - int attendanceEventCode; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__attendanceUser -#define SOAP_TYPE_swad__attendanceUser (54) -/* swad:attendanceUser */ -struct swad__attendanceUser -{ - int userCode; /* required element of type xsd:int */ - char *userNickname; /* optional element of type xsd:string */ - char *userID; /* optional element of type xsd:string */ - char *userSurname1; /* optional element of type xsd:string */ - char *userSurname2; /* optional element of type xsd:string */ - char *userFirstname; /* optional element of type xsd:string */ - char *userPhoto; /* optional element of type xsd:string */ - int present; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__attendanceUsersArray -#define SOAP_TYPE_swad__attendanceUsersArray (55) -/* Sequence of swad:attendanceUsersArray schema type: */ -struct swad__attendanceUsersArray -{ - struct swad__attendanceUser *__ptr; - int __size; -}; -#endif - -#ifndef SOAP_TYPE_swad__getAttendanceUsersOutput -#define SOAP_TYPE_swad__getAttendanceUsersOutput (57) -/* swad:getAttendanceUsersOutput */ -struct swad__getAttendanceUsersOutput -{ - int numUsers; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__attendanceUsersArray usersArray; /* required element of type swad:attendanceUsersArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendAttendanceUsersOutput -#define SOAP_TYPE_swad__sendAttendanceUsersOutput (58) -/* swad:sendAttendanceUsersOutput */ -struct swad__sendAttendanceUsersOutput -{ - int success; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - int numUsers; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getDirectoryTreeOutput -#define SOAP_TYPE_swad__getDirectoryTreeOutput (59) -/* swad:getDirectoryTreeOutput */ -struct swad__getDirectoryTreeOutput -{ - char *tree; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getFileOutput -#define SOAP_TYPE_swad__getFileOutput (60) -/* swad:getFileOutput */ -struct swad__getFileOutput -{ - char *fileName; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ - char *URL; /* optional element of type xsd:string */ - int size; /* required element of type xsd:int */ - int time; /* required element of type xsd:int */ - char *license; /* optional element of type xsd:string */ - char *publisherName; /* optional element of type xsd:string */ - char *publisherPhoto; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getMarksOutput -#define SOAP_TYPE_swad__getMarksOutput (61) -/* swad:getMarksOutput */ -struct swad__getMarksOutput -{ - char *content; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendNoticeOutput -#define SOAP_TYPE_swad__sendNoticeOutput (62) -/* swad:sendNoticeOutput */ -struct swad__sendNoticeOutput -{ - int noticeCode; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendMessageOutput -#define SOAP_TYPE_swad__sendMessageOutput (63) -/* swad:sendMessageOutput */ -struct swad__sendMessageOutput -{ - int numUsers; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:int */ - struct swad__usersArray usersArray; /* required element of type swad:usersArray */ -}; -#endif - -#ifndef SOAP_TYPE_swad__createAccount -#define SOAP_TYPE_swad__createAccount (66) -/* swad:createAccount */ -struct swad__createAccount -{ - char *userNickname; /* optional element of type xsd:string */ - char *userEmail; /* optional element of type xsd:string */ - char *userID; /* optional element of type xsd:string */ - char *userPassword; /* optional element of type xsd:string */ - char *appKey; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__loginByUserPasswordKey -#define SOAP_TYPE_swad__loginByUserPasswordKey (69) -/* swad:loginByUserPasswordKey */ -struct swad__loginByUserPasswordKey -{ - char *userID; /* optional element of type xsd:string */ - char *userPassword; /* optional element of type xsd:string */ - char *appKey; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__loginBySessionKey -#define SOAP_TYPE_swad__loginBySessionKey (72) -/* swad:loginBySessionKey */ -struct swad__loginBySessionKey -{ - char *sessionID; /* optional element of type xsd:string */ - char *appKey; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getNewPassword -#define SOAP_TYPE_swad__getNewPassword (75) -/* swad:getNewPassword */ -struct swad__getNewPassword -{ - char *userID; /* optional element of type xsd:string */ - char *appKey; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getCourses -#define SOAP_TYPE_swad__getCourses (78) -/* swad:getCourses */ -struct swad__getCourses -{ - char *wsKey; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getCourseInfo -#define SOAP_TYPE_swad__getCourseInfo (81) -/* swad:getCourseInfo */ -struct swad__getCourseInfo -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ - char *infoType; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getGroupTypes -#define SOAP_TYPE_swad__getGroupTypes (84) -/* swad:getGroupTypes */ -struct swad__getGroupTypes -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getGroups -#define SOAP_TYPE_swad__getGroups (87) -/* swad:getGroups */ -struct swad__getGroups -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendMyGroups -#define SOAP_TYPE_swad__sendMyGroups (90) -/* swad:sendMyGroups */ -struct swad__sendMyGroups -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ - char *myGroups; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getDirectoryTree -#define SOAP_TYPE_swad__getDirectoryTree (93) -/* swad:getDirectoryTree */ -struct swad__getDirectoryTree -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ - int groupCode; /* required element of type xsd:int */ - int treeCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getFile -#define SOAP_TYPE_swad__getFile (96) -/* swad:getFile */ -struct swad__getFile -{ - char *wsKey; /* optional element of type xsd:string */ - int fileCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getMarks -#define SOAP_TYPE_swad__getMarks (99) -/* swad:getMarks */ -struct swad__getMarks -{ - char *wsKey; /* optional element of type xsd:string */ - int fileCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getTestConfig -#define SOAP_TYPE_swad__getTestConfig (102) -/* swad:getTestConfig */ -struct swad__getTestConfig -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getTests -#define SOAP_TYPE_swad__getTests (105) -/* swad:getTests */ -struct swad__getTests -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ - long beginTime; /* required element of type xsd:long */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getUsers -#define SOAP_TYPE_swad__getUsers (108) -/* swad:getUsers */ -struct swad__getUsers -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ - int groupCode; /* required element of type xsd:int */ - int userRole; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getAttendanceEvents -#define SOAP_TYPE_swad__getAttendanceEvents (111) -/* swad:getAttendanceEvents */ -struct swad__getAttendanceEvents -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendAttendanceEvent -#define SOAP_TYPE_swad__sendAttendanceEvent (114) -/* swad:sendAttendanceEvent */ -struct swad__sendAttendanceEvent -{ - char *wsKey; /* optional element of type xsd:string */ - int attendanceEventCode; /* required element of type xsd:int */ - int courseCode; /* required element of type xsd:int */ - int hidden; /* required element of type xsd:int */ - int startTime; /* required element of type xsd:int */ - int endTime; /* required element of type xsd:int */ - int commentsTeachersVisible; /* required element of type xsd:int */ - char *title; /* optional element of type xsd:string */ - char *text; /* optional element of type xsd:string */ - char *groups; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getAttendanceUsers -#define SOAP_TYPE_swad__getAttendanceUsers (117) -/* swad:getAttendanceUsers */ -struct swad__getAttendanceUsers -{ - char *wsKey; /* optional element of type xsd:string */ - int attendanceEventCode; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendAttendanceUsers -#define SOAP_TYPE_swad__sendAttendanceUsers (120) -/* swad:sendAttendanceUsers */ -struct swad__sendAttendanceUsers -{ - char *wsKey; /* optional element of type xsd:string */ - int attendanceEventCode; /* required element of type xsd:int */ - char *users; /* optional element of type xsd:string */ - int setOthersAsAbsent; /* required element of type xsd:int */ -}; -#endif - -#ifndef SOAP_TYPE_swad__getNotifications -#define SOAP_TYPE_swad__getNotifications (123) -/* swad:getNotifications */ -struct swad__getNotifications -{ - char *wsKey; /* optional element of type xsd:string */ - long beginTime; /* required element of type xsd:long */ -}; -#endif - -#ifndef SOAP_TYPE_swad__markNotificationsAsRead -#define SOAP_TYPE_swad__markNotificationsAsRead (126) -/* swad:markNotificationsAsRead */ -struct swad__markNotificationsAsRead -{ - char *wsKey; /* optional element of type xsd:string */ - char *notifications; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendNotice -#define SOAP_TYPE_swad__sendNotice (129) -/* swad:sendNotice */ -struct swad__sendNotice -{ - char *wsKey; /* optional element of type xsd:string */ - int courseCode; /* required element of type xsd:int */ - char *body; /* optional element of type xsd:string */ -}; -#endif - -#ifndef SOAP_TYPE_swad__sendMessage -#define SOAP_TYPE_swad__sendMessage (132) -/* swad:sendMessage */ -struct swad__sendMessage -{ - char *wsKey; /* optional element of type xsd:string */ - int messageCode; /* required element of type xsd:int */ - char *to; /* optional element of type xsd:string */ - char *subject; /* optional element of type xsd:string */ - char *body; /* optional element of type xsd:string */ -}; -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Header -#define SOAP_TYPE_SOAP_ENV__Header (133) -/* SOAP Header: */ -struct SOAP_ENV__Header -{ -#ifdef WITH_NOEMPTYSTRUCT - char dummy; /* dummy member to enable compilation */ -#endif -}; -#endif - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Code -#define SOAP_TYPE_SOAP_ENV__Code (134) -/* SOAP Fault Code: */ -struct SOAP_ENV__Code -{ - char *SOAP_ENV__Value; /* optional element of type xsd:QName */ - struct SOAP_ENV__Code *SOAP_ENV__Subcode; /* optional element of type SOAP-ENV:Code */ -}; -#endif - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Detail -#define SOAP_TYPE_SOAP_ENV__Detail (136) -/* SOAP-ENV:Detail */ -struct SOAP_ENV__Detail -{ - char *__any; - int __type; /* any type of element (defined below) */ - void *fault; /* transient */ -}; -#endif - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Reason -#define SOAP_TYPE_SOAP_ENV__Reason (139) -/* SOAP-ENV:Reason */ -struct SOAP_ENV__Reason -{ - char *SOAP_ENV__Text; /* optional element of type xsd:string */ -}; -#endif - -#endif - -#ifndef WITH_NOGLOBAL - -#ifndef SOAP_TYPE_SOAP_ENV__Fault -#define SOAP_TYPE_SOAP_ENV__Fault (140) -/* SOAP Fault: */ -struct SOAP_ENV__Fault -{ - char *faultcode; /* optional element of type xsd:QName */ - char *faultstring; /* optional element of type xsd:string */ - char *faultactor; /* optional element of type xsd:string */ - struct SOAP_ENV__Detail *detail; /* optional element of type SOAP-ENV:Detail */ - struct SOAP_ENV__Code *SOAP_ENV__Code; /* optional element of type SOAP-ENV:Code */ - struct SOAP_ENV__Reason *SOAP_ENV__Reason; /* optional element of type SOAP-ENV:Reason */ - char *SOAP_ENV__Node; /* optional element of type xsd:string */ - char *SOAP_ENV__Role; /* optional element of type xsd:string */ - struct SOAP_ENV__Detail *SOAP_ENV__Detail; /* optional element of type SOAP-ENV:Detail */ -}; -#endif - -#endif - -/******************************************************************************\ - * * - * Typedefs * - * * -\******************************************************************************/ - -#ifndef SOAP_TYPE__QName -#define SOAP_TYPE__QName (5) -typedef char *_QName; -#endif - -#ifndef SOAP_TYPE__XML -#define SOAP_TYPE__XML (6) -typedef char *_XML; -#endif - - -/******************************************************************************\ - * * - * Externals * - * * -\******************************************************************************/ - - -/******************************************************************************\ - * * - * Server-Side Operations * - * * -\******************************************************************************/ - - -SOAP_FMAC5 int SOAP_FMAC6 swad__createAccount(struct soap*, char *userNickname, char *userEmail, char *userID, char *userPassword, char *appKey, struct swad__createAccountOutput *createAccountOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__loginByUserPasswordKey(struct soap*, char *userID, char *userPassword, char *appKey, struct swad__loginByUserPasswordKeyOutput *loginByUserPasswordKeyOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__loginBySessionKey(struct soap*, char *sessionID, char *appKey, struct swad__loginBySessionKeyOutput *loginBySessionKeyOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getNewPassword(struct soap*, char *userID, char *appKey, struct swad__getNewPasswordOutput *getNewPasswordOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getCourses(struct soap*, char *wsKey, struct swad__getCoursesOutput *getCoursesOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getCourseInfo(struct soap*, char *wsKey, int courseCode, char *infoType, struct swad__getCourseInfoOutput *getCourseInfoOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getGroupTypes(struct soap*, char *wsKey, int courseCode, struct swad__getGroupTypesOutput *getGroupTypesOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getGroups(struct soap*, char *wsKey, int courseCode, struct swad__getGroupsOutput *getGroupsOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__sendMyGroups(struct soap*, char *wsKey, int courseCode, char *myGroups, struct swad__sendMyGroupsOutput *sendMyGroupsOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getDirectoryTree(struct soap*, char *wsKey, int courseCode, int groupCode, int treeCode, struct swad__getDirectoryTreeOutput *getDirectoryTreeOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getFile(struct soap*, char *wsKey, int fileCode, struct swad__getFileOutput *getFileOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getMarks(struct soap*, char *wsKey, int fileCode, struct swad__getMarksOutput *getMarksOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getTestConfig(struct soap*, char *wsKey, int courseCode, struct swad__getTestConfigOutput *getTestConfigOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getTests(struct soap*, char *wsKey, int courseCode, long beginTime, struct swad__getTestsOutput *getTestsOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getUsers(struct soap*, char *wsKey, int courseCode, int groupCode, int userRole, struct swad__getUsersOutput *getUsersOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getAttendanceEvents(struct soap*, char *wsKey, int courseCode, struct swad__getAttendanceEventsOutput *getAttendanceEventsOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__sendAttendanceEvent(struct soap*, char *wsKey, int attendanceEventCode, int courseCode, int hidden, int startTime, int endTime, int commentsTeachersVisible, char *title, char *text, char *groups, struct swad__sendAttendanceEventOutput *sendAttendanceEventOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getAttendanceUsers(struct soap*, char *wsKey, int attendanceEventCode, struct swad__getAttendanceUsersOutput *getAttendanceUsersOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__sendAttendanceUsers(struct soap*, char *wsKey, int attendanceEventCode, char *users, int setOthersAsAbsent, struct swad__sendAttendanceUsersOutput *sendAttendanceUsersOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__getNotifications(struct soap*, char *wsKey, long beginTime, struct swad__getNotificationsOutput *getNotificationsOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__markNotificationsAsRead(struct soap*, char *wsKey, char *notifications, struct swad__markNotificationsAsReadOutput *markNotificationAsReadOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__sendNotice(struct soap*, char *wsKey, int courseCode, char *body, struct swad__sendNoticeOutput *sendNoticeOut); - -SOAP_FMAC5 int SOAP_FMAC6 swad__sendMessage(struct soap*, char *wsKey, int messageCode, char *to, char *subject, char *body, struct swad__sendMessageOutput *sendMessageOut); - -/******************************************************************************\ - * * - * Server-Side Skeletons to Invoke Service Operations * - * * -\******************************************************************************/ - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__createAccount(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__loginByUserPasswordKey(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__loginBySessionKey(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getNewPassword(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getCourses(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getCourseInfo(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getGroupTypes(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getGroups(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendMyGroups(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getDirectoryTree(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getFile(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getMarks(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getTestConfig(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getTests(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getUsers(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getAttendanceEvents(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendAttendanceEvent(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getAttendanceUsers(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendAttendanceUsers(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__getNotifications(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__markNotificationsAsRead(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendNotice(struct soap*); - -SOAP_FMAC5 int SOAP_FMAC6 soap_serve_swad__sendMessage(struct soap*); - -#ifdef __cplusplus -} -#endif - -#endif - -/* End of soapStub.h */ diff --git a/soap/swad.createAccount.req.xml b/soap/swad.createAccount.req.xml deleted file mode 100644 index e5113c7e..00000000 --- a/soap/swad.createAccount.req.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/soap/swad.createAccount.res.xml b/soap/swad.createAccount.res.xml deleted file mode 100644 index 32fd972f..00000000 --- a/soap/swad.createAccount.res.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - 0 - - - - diff --git a/soap/swad.getAttendanceEvents.req.xml b/soap/swad.getAttendanceEvents.req.xml deleted file mode 100644 index a54d2b45..00000000 --- a/soap/swad.getAttendanceEvents.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getAttendanceEvents.res.xml b/soap/swad.getAttendanceEvents.res.xml deleted file mode 100644 index 95f54afd..00000000 --- a/soap/swad.getAttendanceEvents.res.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - 0 - - - 0 - 0 - - - - - 0 - 0 - 0 - - - - - - - - diff --git a/soap/swad.getAttendanceUsers.req.xml b/soap/swad.getAttendanceUsers.req.xml deleted file mode 100644 index e8512792..00000000 --- a/soap/swad.getAttendanceUsers.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getAttendanceUsers.res.xml b/soap/swad.getAttendanceUsers.res.xml deleted file mode 100644 index 25f39494..00000000 --- a/soap/swad.getAttendanceUsers.res.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - 0 - - - 0 - - - - - - - 0 - - - - - diff --git a/soap/swad.getCourseInfo.req.xml b/soap/swad.getCourseInfo.req.xml deleted file mode 100644 index 33a6edec..00000000 --- a/soap/swad.getCourseInfo.req.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 0 - - - - diff --git a/soap/swad.getCourseInfo.res.xml b/soap/swad.getCourseInfo.res.xml deleted file mode 100644 index 96c3f927..00000000 --- a/soap/swad.getCourseInfo.res.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/soap/swad.getCourses.req.xml b/soap/swad.getCourses.req.xml deleted file mode 100644 index 85d17d81..00000000 --- a/soap/swad.getCourses.req.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - diff --git a/soap/swad.getCourses.res.xml b/soap/swad.getCourses.res.xml deleted file mode 100644 index 068167d7..00000000 --- a/soap/swad.getCourses.res.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - 0 - - - 0 - - - 0 - - - - - diff --git a/soap/swad.getDirectoryTree.req.xml b/soap/swad.getDirectoryTree.req.xml deleted file mode 100644 index 11df56bf..00000000 --- a/soap/swad.getDirectoryTree.req.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - 0 - 0 - 0 - - - diff --git a/soap/swad.getDirectoryTree.res.xml b/soap/swad.getDirectoryTree.res.xml deleted file mode 100644 index 7e4d9627..00000000 --- a/soap/swad.getDirectoryTree.res.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - diff --git a/soap/swad.getFile.req.xml b/soap/swad.getFile.req.xml deleted file mode 100644 index e82d9559..00000000 --- a/soap/swad.getFile.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getFile.res.xml b/soap/swad.getFile.res.xml deleted file mode 100644 index bbb821b6..00000000 --- a/soap/swad.getFile.res.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - 0 - - - - - - - diff --git a/soap/swad.getGroupTypes.req.xml b/soap/swad.getGroupTypes.req.xml deleted file mode 100644 index 86056700..00000000 --- a/soap/swad.getGroupTypes.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getGroupTypes.res.xml b/soap/swad.getGroupTypes.res.xml deleted file mode 100644 index c93c47cd..00000000 --- a/soap/swad.getGroupTypes.res.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 0 - - - 0 - - 0 - 0 - 0 - - - - - diff --git a/soap/swad.getGroups.req.xml b/soap/swad.getGroups.req.xml deleted file mode 100644 index 4bd00472..00000000 --- a/soap/swad.getGroups.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getGroups.res.xml b/soap/swad.getGroups.res.xml deleted file mode 100644 index a00c42c2..00000000 --- a/soap/swad.getGroups.res.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - 0 - - - 0 - - 0 - - 0 - 0 - 0 - 0 - 0 - - - - - diff --git a/soap/swad.getMarks.req.xml b/soap/swad.getMarks.req.xml deleted file mode 100644 index 88ad9441..00000000 --- a/soap/swad.getMarks.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getMarks.res.xml b/soap/swad.getMarks.res.xml deleted file mode 100644 index dc63f461..00000000 --- a/soap/swad.getMarks.res.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - diff --git a/soap/swad.getNewPassword.req.xml b/soap/swad.getNewPassword.req.xml deleted file mode 100644 index a3c0a968..00000000 --- a/soap/swad.getNewPassword.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/soap/swad.getNewPassword.res.xml b/soap/swad.getNewPassword.res.xml deleted file mode 100644 index cf0a982d..00000000 --- a/soap/swad.getNewPassword.res.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - 0 - - - diff --git a/soap/swad.getNotifications.req.xml b/soap/swad.getNotifications.req.xml deleted file mode 100644 index 981ebd26..00000000 --- a/soap/swad.getNotifications.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getNotifications.res.xml b/soap/swad.getNotifications.res.xml deleted file mode 100644 index e2b62108..00000000 --- a/soap/swad.getNotifications.res.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - 0 - - - 0 - - 0 - 0 - - - - - - - 0 -

- - - - - - diff --git a/soap/swad.getTestConfig.req.xml b/soap/swad.getTestConfig.req.xml deleted file mode 100644 index 1405283d..00000000 --- a/soap/swad.getTestConfig.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 0 - - - diff --git a/soap/swad.getTestConfig.res.xml b/soap/swad.getTestConfig.res.xml deleted file mode 100644 index de632e06..00000000 --- a/soap/swad.getTestConfig.res.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 0 - 0 - 0 - 0 - 0 - - - - diff --git a/soap/swad.getTests.req.xml b/soap/swad.getTests.req.xml deleted file mode 100644 index 9bdc8bd8..00000000 --- a/soap/swad.getTests.req.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 0 - 0 - - - diff --git a/soap/swad.getTests.res.xml b/soap/swad.getTests.res.xml deleted file mode 100644 index 9af2c477..00000000 --- a/soap/swad.getTests.res.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - 0 - - - - - - 0 - - 0 - - - - - - - 0 - 0 - 0 - - - - - - - 0 - 0 - 0 - - - - - diff --git a/soap/swad.getUsers.req.xml b/soap/swad.getUsers.req.xml deleted file mode 100644 index b6c40588..00000000 --- a/soap/swad.getUsers.req.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - 0 - 0 - 0 - - - diff --git a/soap/swad.getUsers.res.xml b/soap/swad.getUsers.res.xml deleted file mode 100644 index edc65dd6..00000000 --- a/soap/swad.getUsers.res.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 0 - - - 0 - - - - - - - - - - - diff --git a/soap/swad.loginBySessionKey.req.xml b/soap/swad.loginBySessionKey.req.xml deleted file mode 100644 index 53699db0..00000000 --- a/soap/swad.loginBySessionKey.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/soap/swad.loginBySessionKey.res.xml b/soap/swad.loginBySessionKey.res.xml deleted file mode 100644 index 80f28a3a..00000000 --- a/soap/swad.loginBySessionKey.res.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - 0 - 0 - 0 - 0 - - - - - - - - - 0 - - - - - - diff --git a/soap/swad.loginByUserPasswordKey.req.xml b/soap/swad.loginByUserPasswordKey.req.xml deleted file mode 100644 index 7ba65073..00000000 --- a/soap/swad.loginByUserPasswordKey.req.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - diff --git a/soap/swad.loginByUserPasswordKey.res.xml b/soap/swad.loginByUserPasswordKey.res.xml deleted file mode 100644 index 12a186f9..00000000 --- a/soap/swad.loginByUserPasswordKey.res.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 0 - - - - - - - - - 0 - - - diff --git a/soap/swad.markNotificationsAsRead.req.xml b/soap/swad.markNotificationsAsRead.req.xml deleted file mode 100644 index b1b5e806..00000000 --- a/soap/swad.markNotificationsAsRead.req.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/soap/swad.markNotificationsAsRead.res.xml b/soap/swad.markNotificationsAsRead.res.xml deleted file mode 100644 index f41a7192..00000000 --- a/soap/swad.markNotificationsAsRead.res.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - 0 - - - diff --git a/soap/swad.nsmap b/soap/swad.nsmap deleted file mode 100644 index 14510c7d..00000000 --- a/soap/swad.nsmap +++ /dev/null @@ -1,11 +0,0 @@ - -#include "soapH.h" -SOAP_NMAC struct Namespace namespaces[] = -{ - {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, - {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, - {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, - {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, - {"swad", "urn:swad", NULL, NULL}, - {NULL, NULL, NULL, NULL} -}; diff --git a/soap/swad.sendAttendanceEvent.req.xml b/soap/swad.sendAttendanceEvent.req.xml deleted file mode 100644 index 3442eaff..00000000 --- a/soap/swad.sendAttendanceEvent.req.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - diff --git a/soap/swad.sendAttendanceEvent.res.xml b/soap/swad.sendAttendanceEvent.res.xml deleted file mode 100644 index 6a683b9d..00000000 --- a/soap/swad.sendAttendanceEvent.res.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - 0 - - - diff --git a/soap/swad.sendAttendanceUsers.req.xml b/soap/swad.sendAttendanceUsers.req.xml deleted file mode 100644 index 6e6e0be3..00000000 --- a/soap/swad.sendAttendanceUsers.req.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - 0 - - 0 - - - diff --git a/soap/swad.sendAttendanceUsers.res.xml b/soap/swad.sendAttendanceUsers.res.xml deleted file mode 100644 index c79523f0..00000000 --- a/soap/swad.sendAttendanceUsers.res.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - 0 - 0 - - - diff --git a/soap/swad.sendMessage.req.xml b/soap/swad.sendMessage.req.xml deleted file mode 100644 index 11ec1f10..00000000 --- a/soap/swad.sendMessage.req.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - 0 - - - - - - diff --git a/soap/swad.sendMessage.res.xml b/soap/swad.sendMessage.res.xml deleted file mode 100644 index 3b75eb3f..00000000 --- a/soap/swad.sendMessage.res.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 0 - - - 0 - - - - - - - - - - - diff --git a/soap/swad.sendMyGroups.req.xml b/soap/swad.sendMyGroups.req.xml deleted file mode 100644 index 3b3fdd4d..00000000 --- a/soap/swad.sendMyGroups.req.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 0 - - - - diff --git a/soap/swad.sendMyGroups.res.xml b/soap/swad.sendMyGroups.res.xml deleted file mode 100644 index 1da2bf43..00000000 --- a/soap/swad.sendMyGroups.res.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - 0 - 0 - - - 0 - - 0 - - 0 - 0 - 0 - 0 - 0 - - - - - diff --git a/soap/swad.sendNotice.req.xml b/soap/swad.sendNotice.req.xml deleted file mode 100644 index b92e2713..00000000 --- a/soap/swad.sendNotice.req.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 0 - - - - diff --git a/soap/swad.sendNotice.res.xml b/soap/swad.sendNotice.res.xml deleted file mode 100644 index afe7934d..00000000 --- a/soap/swad.sendNotice.res.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - 0 - - - diff --git a/soap/swad.wsdl b/soap/swad.wsdl deleted file mode 100644 index 2055193b..00000000 --- a/soap/swad.wsdl +++ /dev/null @@ -1,1213 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Service definition of function swad__createAccount - - - - - Service definition of function swad__loginByUserPasswordKey - - - - - Service definition of function swad__loginBySessionKey - - - - - Service definition of function swad__getNewPassword - - - - - Service definition of function swad__getCourses - - - - - Service definition of function swad__getCourseInfo - - - - - Service definition of function swad__getGroupTypes - - - - - Service definition of function swad__getGroups - - - - - Service definition of function swad__sendMyGroups - - - - - Service definition of function swad__getDirectoryTree - - - - - Service definition of function swad__getFile - - - - - Service definition of function swad__getMarks - - - - - Service definition of function swad__getTestConfig - - - - - Service definition of function swad__getTests - - - - - Service definition of function swad__getUsers - - - - - Service definition of function swad__getAttendanceEvents - - - - - Service definition of function swad__sendAttendanceEvent - - - - - Service definition of function swad__getAttendanceUsers - - - - - Service definition of function swad__sendAttendanceUsers - - - - - Service definition of function swad__getNotifications - - - - - Service definition of function swad__markNotificationsAsRead - - - - - Service definition of function swad__sendNotice - - - - - Service definition of function swad__sendMessage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - gSOAP 2.8.18 generated service definition - - - - - - diff --git a/soap/swad.xsd b/soap/swad.xsd deleted file mode 100644 index 91672cb4..00000000 --- a/soap/swad.xsd +++ /dev/null @@ -1,673 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/swad_action.c b/swad_action.c index 05b7043d..aea21afd 100644 --- a/swad_action.c +++ b/swad_action.c @@ -2206,7 +2206,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActLogOut */{ 10,-1,TabPrf,ActFrmLogIn ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,Ses_CloseSession ,Usr_Logout ,NULL}, /* ActAnnSee */{1234,-1,TabPrf,ActFrmLogIn ,0x1FE,0x1FE,0x1FE,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Ann_MarkAnnouncementAsSeen ,NULL}, - /* ActChgMyRol */{ 589,-1,TabPrf,ActFrmLogIn ,0x1FE,0x1FE,0x1FE,Act_CONTENT_NORM,Act_MAIN_WINDOW,Usr_ChangeMyRole ,Usr_ShowFormsRoleAndLogout ,NULL}, + /* ActChgMyRol */{ 589,-1,TabPrf,ActFrmLogIn ,0x1FE,0x1FE,0x1FE,Act_CONTENT_NORM,Act_MAIN_WINDOW,Rol_ChangeMyRole ,Usr_ShowFormsRoleAndLogout ,NULL}, /* ActCreUsrAcc */{1163,-1,TabPrf,ActFrmUsrAcc ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Enr_AfterCreationNewAccount ,NULL}, diff --git a/swad_announcement.c b/swad_announcement.c index f4777cc7..b5c24d28 100644 --- a/swad_announcement.c +++ b/swad_announcement.c @@ -352,7 +352,7 @@ void Ann_ShowFormAnnouncement (void) "%s: " "", Txt_Users); - Usr_WriteSelectorRoles (1 << Rol_ROLE_STUDENT | + Rol_WriteSelectorRoles (1 << Rol_ROLE_STUDENT | 1 << Rol_ROLE_TEACHER); fprintf (Gbl.F.Out,"" "" @@ -383,7 +383,7 @@ void Ann_ReceiveAnnouncement (void) Str_TO_RIGOROUS_HTML,true); /* Get users who can view this announcement */ - Usr_GetSelectedRoles (&Roles); + Rol_GetSelectedRoles (&Roles); /***** Create a new announcement in database *****/ Ann_CreateAnnouncement (Roles,Subject,Content); diff --git a/swad_changelog.h b/swad_changelog.h index a07fb3df..de3809ce 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -35,12 +35,16 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.35 (2014/12/12)" +#define Log_PLATFORM_VERSION "SWAD 14.36 (2014/12/12)" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h | tail -1 /* + Version 14.36 :Dic 12, 2014 New module swad_role for user's roles. (170764 lines) + 1 change necessary in Makefile: +Add swad_role.o to list of object files + Version 14.35 :Dic 12, 2014 New MIME type, suggested by Benito Palacios. New module swad_enrollment for enrollment (registration) or removing of users. (170725 lines) 1 change necessary in Makefile: diff --git a/swad_connected.c b/swad_connected.c index 195167b8..0858a606 100644 --- a/swad_connected.c +++ b/swad_connected.c @@ -221,7 +221,7 @@ void Con_GetAndShowLastClicks (void) "", ClassRow,row[0], ClassRow,row[2], - ClassRow,Txt_ROLES_SINGULAR_Abc[Usr_ConvertUnsignedStrToRole (row[3])][Usr_SEX_UNKNOWN], + ClassRow,Txt_ROLES_SINGULAR_Abc[Rol_ConvertUnsignedStrToRole (row[3])][Usr_SEX_UNKNOWN], ClassRow,Deg.ShortName, ClassRow,row[5]); } diff --git a/swad_enrollment.c b/swad_enrollment.c index a010c985..65635745 100644 --- a/swad_enrollment.c +++ b/swad_enrollment.c @@ -102,8 +102,6 @@ static bool Enr_PutActionsRegRemOneUsr (bool ItsMe); static bool Enr_CheckIfICanEliminateAccount (bool ItsMe); static void Enr_PutLinkToRemoveMyAccount (void); static void Enr_PutActionsRegRemSeveralUsrs (void); -static void Enr_PutAllRolesRegRemUsrsCrs (void); -static void Enr_PutOneRoleRegRemUsrsCrs (Rol_Role_t Role,bool Checked); static void Enr_RegisterUsr (struct UsrData *UsrDat,Rol_Role_t RegRemRole, struct ListCodGrps *LstGrps,unsigned *NumUsrsRegistered); @@ -118,6 +116,7 @@ static void Enr_AskIfRegRemUsr (struct ListUsrCods *ListUsrCods); static void Enr_ShowFormToEditOtherUsr (void); +static void Enr_RegisterAdminInCurrentDeg (struct UsrData *UsrDat); static void Enr_ReqRemAdmOfDeg (void); static void Enr_ReqRemOrRemAdm (Enr_ReqDelOrDelUsr_t ReqDelOrDelUsr); @@ -127,7 +126,6 @@ static void Enr_ReqAddAdmOfDeg (void); static void Enr_CreateNewEncryptedUsrCod (struct UsrData *UsrDat); static void Enr_FilterUsrDat (struct UsrData *UsrDat); -static void Enr_RegisterAdminInCurrentDeg (struct UsrData *UsrDat); static void Enr_EffectivelyRemUsrFromCrs (struct UsrData *UsrDat,struct Course *Crs, Enr_RemoveUsrWorks_t RemoveUsrWorks,Cns_QuietOrVerbose_t QuietOrVerbose); static void Enr_EffectivelyRemAdmFromDeg (struct UsrData *UsrDat); @@ -135,10 +133,48 @@ static void Enr_DeleteUsrFromPlatform (struct UsrData *UsrDat, Cns_QuietOrVerbose_t QuietOrVerbose); static void Enr_RemoveUsr (struct UsrData *UsrDat); -static void Enr_ModifyRoleInCurrentCrs (struct UsrData *UsrDat, - Rol_Role_t NewRole, - Cns_QuietOrVerbose_t QuietOrVerbose, - Enr_KeepOrSetAccepted_t KeepOrSetAccepted); +/*****************************************************************************/ +/***************** Modify the role of a user in a course *********************/ +/*****************************************************************************/ + +void Enr_ModifyRoleInCurrentCrs (struct UsrData *UsrDat, + Rol_Role_t NewRole, + Cns_QuietOrVerbose_t QuietOrVerbose) + { + extern const char *Txt_The_role_of_THE_USER_X_in_the_course_Y_has_changed_from_A_to_B; + extern const char *Txt_ROLES_SINGULAR_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; + char Query[256]; + Rol_Role_t OldRole; + + /***** Change user's role if different *****/ + OldRole = Rol_GetRoleInCrs (Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod); + if (NewRole != OldRole) // The role must be updated + { + /***** Check if user's role is allowed *****/ + if (!(NewRole == Rol_ROLE_STUDENT || + NewRole == Rol_ROLE_TEACHER)) + Lay_ShowErrorAndExit ("Wrong role."); + + /***** Update the role of a user in a course *****/ + sprintf (Query,"UPDATE crs_usr SET Role='%u'" + " WHERE CrsCod='%ld' AND UsrCod='%ld'", + (unsigned) NewRole,Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod); + DB_QueryUPDATE (Query,"can not modify user's role in course"); + + /***** Show info message *****/ + if (QuietOrVerbose == Cns_VERBOSE) + { + sprintf (Gbl.Message,Txt_The_role_of_THE_USER_X_in_the_course_Y_has_changed_from_A_to_B, + UsrDat->FullName,Gbl.CurrentCrs.Crs.FullName, + Txt_ROLES_SINGULAR_abc[OldRole][UsrDat->Sex], + Txt_ROLES_SINGULAR_abc[NewRole][UsrDat->Sex]); + Lay_ShowAlert (Lay_SUCCESS,Gbl.Message); + } + + UsrDat->RoleInCurrentCrsDB = NewRole; + UsrDat->Roles |= (1 << NewRole); + } + } /*****************************************************************************/ /*********************** Register user in current course *********************/ @@ -205,34 +241,6 @@ void Enr_RegisterUsrInCurrentCrs (struct UsrData *UsrDat,Rol_Role_t NewRole, } } -/*****************************************************************************/ -/******************* Register administrator in current degree ****************/ -/*****************************************************************************/ - -static void Enr_RegisterAdminInCurrentDeg (struct UsrData *UsrDat) - { - extern const char *Txt_THE_USER_X_is_already_an_administrator_of_the_degree_Y; - extern const char *Txt_THE_USER_X_has_been_enrolled_as_administrator_of_the_degree_Y; - char Query[512]; - - /***** Check if user was and administrator of current degree *****/ - if (Usr_CheckIfUsrIsAdmOfDeg (UsrDat->UsrCod,Gbl.CurrentDeg.Deg.DegCod)) - sprintf (Gbl.Message,Txt_THE_USER_X_is_already_an_administrator_of_the_degree_Y, - UsrDat->FullName,Gbl.CurrentDeg.Deg.FullName); - else // User was not administrator of current degree - { - /***** Insert or replace administrator in current degree *****/ - sprintf (Query,"REPLACE INTO deg_admin (UsrCod,DegCod)" - " VALUES ('%ld','%ld')", - UsrDat->UsrCod,Gbl.CurrentDeg.Deg.DegCod); - DB_QueryREPLACE (Query,"can not create administrator of degree"); - - sprintf (Gbl.Message,Txt_THE_USER_X_has_been_enrolled_as_administrator_of_the_degree_Y, - UsrDat->FullName,Gbl.CurrentDeg.Deg.FullName); - } - Lay_ShowAlert (Lay_SUCCESS,Gbl.Message); - } - /*****************************************************************************/ /************************ Remove a user from a course ************************/ /*****************************************************************************/ @@ -950,7 +958,7 @@ void Enr_GetNotifEnrollment (char *SummaryStr, Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat); /* Role (row[0]) */ - Role = Usr_ConvertUnsignedStrToRole (row[0]); + Role = Rol_ConvertUnsignedStrToRole (row[0]); strcpy (SummaryStr,Txt_ROLES_SINGULAR_Abc[Role][UsrDat.Sex]); if (MaxChars) Str_LimitLengthHTMLStr (SummaryStr,MaxChars); @@ -1212,7 +1220,7 @@ void Enr_ShowFormRegRemSeveralUsrs (void) The_ClassTitle[Gbl.Prefs.Theme], Txt_Step_2_Select_the_type_of_user_to_register_remove); if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected - Enr_PutAllRolesRegRemUsrsCrs (); + Rol_PutAllRolesRegRemUsrsCrs (); /***** Step 3: Put different actions to register/remove students to/from current course *****/ fprintf (Gbl.F.Out,"
" @@ -1650,50 +1658,6 @@ static void Enr_PutActionsRegRemSeveralUsrs (void) "
"); } -/*****************************************************************************/ -/*** Select types of user to register/remove users to/from current course ****/ -/*****************************************************************************/ - -static void Enr_PutAllRolesRegRemUsrsCrs (void) - { - extern const char *The_ClassFormul[The_NUM_THEMES]; - - /***** Students or teachers *****/ - fprintf (Gbl.F.Out,"
" - "
    ", - The_ClassFormul[Gbl.Prefs.Theme]); - Enr_PutOneRoleRegRemUsrsCrs (Rol_ROLE_STUDENT,true); - Enr_PutOneRoleRegRemUsrsCrs (Rol_ROLE_TEACHER,false); - fprintf (Gbl.F.Out,"
" - "
"); - } - -/*****************************************************************************/ -/*** Select types of user to register/remove users to/from current course ****/ -/*****************************************************************************/ - -static void Enr_PutOneRoleRegRemUsrsCrs (Rol_Role_t Role,bool Checked) - { - extern const char *Txt_ROLES_SINGULAR_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; - - fprintf (Gbl.F.Out,"
  • " - "%s
  • ", - Txt_ROLES_SINGULAR_Abc[Role][Usr_SEX_UNKNOWN]); - } - /*****************************************************************************/ /******* Receive the list of users of the course to register/remove **********/ /*****************************************************************************/ @@ -1748,7 +1712,7 @@ void Enr_ReceiveFormUsrsCrs (void) /***** Get the type of user to register / remove *****/ Par_GetParToText ("RegRemRole",UnsignedStr,1); if (UnsignedStr[0]) - switch ((RegRemRole = Usr_ConvertUnsignedStrToRole (UnsignedStr))) + switch ((RegRemRole = Rol_ConvertUnsignedStrToRole (UnsignedStr))) { case Rol_ROLE_STUDENT: break; @@ -2222,11 +2186,10 @@ static void Enr_RegisterUsr (struct UsrData *UsrDat,Rol_Role_t RegRemRole, if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected { if (Usr_CheckIfUsrBelongsToCrs (UsrDat->UsrCod,Gbl.CurrentCrs.Crs.CrsCod)) // User does belong to current course, modify his/her role - Enr_ModifyRoleInCurrentCrs (UsrDat,RegRemRole, - Cns_QUIET,Enr_SET_ACCEPTED_TO_FALSE); + Enr_ModifyRoleInCurrentCrs (UsrDat,RegRemRole,Cns_QUIET); else - Enr_RegisterUsrInCurrentCrs (UsrDat,RegRemRole, - Cns_QUIET,Enr_SET_ACCEPTED_TO_FALSE); + Enr_RegisterUsrInCurrentCrs (UsrDat,RegRemRole,Cns_QUIET, + Enr_SET_ACCEPTED_TO_FALSE); /***** Register user in the selected groups *****/ if (Gbl.CurrentCrs.Grps.NumGrps) // If there are groups in the course @@ -2456,7 +2419,7 @@ void Enr_SignUpInCrs (void) { /***** Get new role from record form *****/ Par_GetParToText ("Role",UnsignedStr,10); - RoleFromForm = Usr_ConvertUnsignedStrToRole (UnsignedStr); + RoleFromForm = Rol_ConvertUnsignedStrToRole (UnsignedStr); /* Check if role is correct */ if (!(RoleFromForm == Rol_ROLE_STUDENT || @@ -2556,7 +2519,7 @@ void Enr_GetNotifEnrollmentRequest (char *SummaryStr,char **ContentStr, Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat); /* Role (row[1]) */ - DesiredRole = Usr_ConvertUnsignedStrToRole (row[1]); + DesiredRole = Rol_ConvertUnsignedStrToRole (row[1]); strcpy (SummaryStr,Txt_ROLES_SINGULAR_Abc[DesiredRole][UsrDat.Sex]); if (MaxChars) Str_LimitLengthHTMLStr (SummaryStr,MaxChars); @@ -2741,7 +2704,7 @@ void Enr_ShowEnrollmentRequests (void) "%s:" "", The_ClassFormul[Gbl.Prefs.Theme],Txt_Users); - Usr_GetSelectedRoles (&Roles); + Rol_GetSelectedRoles (&Roles); if (!Roles) /* Set default roles */ switch (Gbl.Usrs.Me.LoggedRole) @@ -2757,7 +2720,7 @@ void Enr_ShowEnrollmentRequests (void) Lay_ShowErrorAndExit ("You don't have permission to list requesters."); break; } - Usr_WriteSelectorRoles (Roles); + Rol_WriteSelectorRoles (Roles); fprintf (Gbl.F.Out,"" ""); /* Form end */ @@ -3046,7 +3009,7 @@ void Enr_ShowEnrollmentRequests (void) Usr_RestrictLengthAndWriteName (&UsrDat,20); /***** Requested role (row[3]) *****/ - DesiredRole = Usr_ConvertUnsignedStrToRole (row[3]); + DesiredRole = Rol_ConvertUnsignedStrToRole (row[3]); fprintf (Gbl.F.Out,"%s", Txt_ROLES_SINGULAR_abc[DesiredRole][UsrDat.Sex]); @@ -3144,7 +3107,7 @@ Rol_Role_t Enr_GetRequestedRole (long UsrCod) { /***** Get role *****/ row = mysql_fetch_row (mysql_res); - Role = Usr_ConvertUnsignedStrToRole (row[0]); + Role = Rol_ConvertUnsignedStrToRole (row[0]); } /***** Free structure that stores the query result *****/ @@ -3432,6 +3395,34 @@ void Enr_AddAdmToDeg (void) } } +/*****************************************************************************/ +/******************* Register administrator in current degree ****************/ +/*****************************************************************************/ + +static void Enr_RegisterAdminInCurrentDeg (struct UsrData *UsrDat) + { + extern const char *Txt_THE_USER_X_is_already_an_administrator_of_the_degree_Y; + extern const char *Txt_THE_USER_X_has_been_enrolled_as_administrator_of_the_degree_Y; + char Query[512]; + + /***** Check if user was and administrator of current degree *****/ + if (Usr_CheckIfUsrIsAdmOfDeg (UsrDat->UsrCod,Gbl.CurrentDeg.Deg.DegCod)) + sprintf (Gbl.Message,Txt_THE_USER_X_is_already_an_administrator_of_the_degree_Y, + UsrDat->FullName,Gbl.CurrentDeg.Deg.FullName); + else // User was not administrator of current degree + { + /***** Insert or replace administrator in current degree *****/ + sprintf (Query,"REPLACE INTO deg_admin (UsrCod,DegCod)" + " VALUES ('%ld','%ld')", + UsrDat->UsrCod,Gbl.CurrentDeg.Deg.DegCod); + DB_QueryREPLACE (Query,"can not create administrator of degree"); + + sprintf (Gbl.Message,Txt_THE_USER_X_has_been_enrolled_as_administrator_of_the_degree_Y, + UsrDat->FullName,Gbl.CurrentDeg.Deg.FullName); + } + Lay_ShowAlert (Lay_SUCCESS,Gbl.Message); + } + /*****************************************************************************/ /****************** Ask for remove me from current course ********************/ /*****************************************************************************/ @@ -3826,11 +3817,10 @@ void Enr_CreatAndShowNewUsrRecordAndRegInCrs (void) if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected { if (Usr_CheckIfUsrBelongsToCrs (Gbl.Usrs.Other.UsrDat.UsrCod,Gbl.CurrentCrs.Crs.CrsCod)) // User does belong to current course, modify his/her role - Enr_ModifyRoleInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole, - Cns_VERBOSE,Enr_SET_ACCEPTED_TO_FALSE); + Enr_ModifyRoleInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole,Cns_VERBOSE); else - Enr_RegisterUsrInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole, - Cns_VERBOSE,Enr_SET_ACCEPTED_TO_FALSE); + Enr_RegisterUsrInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole,Cns_VERBOSE, + Enr_SET_ACCEPTED_TO_FALSE); /***** Change user's groups *****/ if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups? @@ -3899,11 +3889,10 @@ void Enr_ModifAndShowUsrCardAndRegInCrsAndGrps (void) /***** Register user in current course in database *****/ if (Usr_CheckIfUsrBelongsToCrs (Gbl.Usrs.Other.UsrDat.UsrCod,Gbl.CurrentCrs.Crs.CrsCod)) // User does belong to current course, modify his/her role - Enr_ModifyRoleInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole, - Cns_VERBOSE,Enr_SET_ACCEPTED_TO_FALSE); + Enr_ModifyRoleInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole,Cns_VERBOSE); else - Enr_RegisterUsrInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole, - Cns_VERBOSE,Enr_SET_ACCEPTED_TO_FALSE); + Enr_RegisterUsrInCurrentCrs (&Gbl.Usrs.Other.UsrDat,NewRole,Cns_VERBOSE, + Enr_SET_ACCEPTED_TO_FALSE); /***** Change user's groups *****/ if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups? @@ -3962,54 +3951,6 @@ void Enr_ModifAndShowUsrCardAndRegInCrsAndGrps (void) Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); } -/*****************************************************************************/ -/***************** Modify the role of a user in a course *********************/ -/*****************************************************************************/ - -static void Enr_ModifyRoleInCurrentCrs (struct UsrData *UsrDat, - Rol_Role_t NewRole, - Cns_QuietOrVerbose_t QuietOrVerbose, - Enr_KeepOrSetAccepted_t KeepOrSetAccepted) - { - extern const char *Txt_The_role_of_THE_USER_X_in_the_course_Y_has_changed_from_A_to_B; - extern const char *Txt_ROLES_SINGULAR_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; - char Query[256]; - Rol_Role_t OldRole; - - /***** Change user's role if different *****/ - OldRole = Usr_GetRoleInCrs (Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod); - if (NewRole != OldRole) // The role must be updated - { - /***** Check if user's role is allowed *****/ - if (!(NewRole == Rol_ROLE_STUDENT || - NewRole == Rol_ROLE_TEACHER)) - Lay_ShowErrorAndExit ("Wrong role."); - - /***** Update the role of a user in a course *****/ - sprintf (Query,"UPDATE crs_usr SET Role='%u'" - " WHERE CrsCod='%ld' AND UsrCod='%ld'", - (unsigned) NewRole,Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod); - DB_QueryUPDATE (Query,"can not modify user's role in course"); - - /***** Show info message *****/ - if (QuietOrVerbose == Cns_VERBOSE) - { - sprintf (Gbl.Message,Txt_The_role_of_THE_USER_X_in_the_course_Y_has_changed_from_A_to_B, - UsrDat->FullName,Gbl.CurrentCrs.Crs.FullName, - Txt_ROLES_SINGULAR_abc[OldRole][UsrDat->Sex], - Txt_ROLES_SINGULAR_abc[NewRole][UsrDat->Sex]); - Lay_ShowAlert (Lay_SUCCESS,Gbl.Message); - } - - UsrDat->RoleInCurrentCrsDB = NewRole; - UsrDat->Roles |= (1 << NewRole); - } - - /***** Set user's acceptation to true in the current course *****/ - if (KeepOrSetAccepted == Enr_SET_ACCEPTED_TO_TRUE) - Enr_AcceptUsrInCrs (UsrDat->UsrCod); // Confirm user enrollment - } - /*****************************************************************************/ /********* Set a user's acceptation to true in the current course ************/ /*****************************************************************************/ diff --git a/swad_enrollment.h b/swad_enrollment.h index d7417ff1..73cb5010 100644 --- a/swad_enrollment.h +++ b/swad_enrollment.h @@ -59,6 +59,13 @@ typedef enum /****************************** Public prototypes ****************************/ /*****************************************************************************/ +void Enr_ModifyRoleInCurrentCrs (struct UsrData *UsrDat, + Rol_Role_t NewRole, + Cns_QuietOrVerbose_t QuietOrVerbose); +void Enr_RegisterUsrInCurrentCrs (struct UsrData *UsrDat,Rol_Role_t NewRole, + Cns_QuietOrVerbose_t QuietOrVerbose, + Enr_KeepOrSetAccepted_t KeepOrSetAccepted); + void Enr_RemoveUsrFromTableClicksWithoutPhoto (long UsrCod); void Enr_WriteFormToReqAnotherUsrID (Act_Action_t NextAction); @@ -78,9 +85,7 @@ void Enr_GetNotifEnrollment (char *SummaryStr, void Enr_CreateNewUsr (struct UsrData *UsrDat); void Enr_UpdateUsrData (struct UsrData *UsrDat); void Enr_UpdateInstitutionCentreDepartment (void); -void Enr_RegisterUsrInCurrentCrs (struct UsrData *UsrDat,Rol_Role_t NewRole, - Cns_QuietOrVerbose_t QuietOrVerbose, - Enr_KeepOrSetAccepted_t KeepOrSetAccepted); + bool Enr_CreateNewAccountAndLogIn (void); void Enr_RemoveUsrBriefcase (struct UsrData *UsrDat); diff --git a/swad_forum.c b/swad_forum.c index 7c9385f8..056974d1 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -1468,35 +1468,35 @@ void For_SetForumTypeAndRestrictAccess (void) { case For_FORUM_COURSE_USRS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyRoleInCrs (Gbl.Forum.Crs.CrsCod) >= Rol_ROLE_STUDENT); + Rol_GetMyRoleInCrs (Gbl.Forum.Crs.CrsCod) >= Rol_ROLE_STUDENT); break; case For_FORUM_COURSE_TCHS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyRoleInCrs (Gbl.Forum.Crs.CrsCod) >= Rol_ROLE_TEACHER); + Rol_GetMyRoleInCrs (Gbl.Forum.Crs.CrsCod) >= Rol_ROLE_TEACHER); break; case For_FORUM_DEGREE_USRS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInDeg (Gbl.Forum.Deg.DegCod) >= Rol_ROLE_STUDENT); + Rol_GetMyMaxRoleInDeg (Gbl.Forum.Deg.DegCod) >= Rol_ROLE_STUDENT); break; case For_FORUM_DEGREE_TCHS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInDeg (Gbl.Forum.Deg.DegCod) >= Rol_ROLE_TEACHER); + Rol_GetMyMaxRoleInDeg (Gbl.Forum.Deg.DegCod) >= Rol_ROLE_TEACHER); break; case For_FORUM_CENTRE_USRS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInCtr (Gbl.Forum.Ctr.CtrCod) >= Rol_ROLE_STUDENT); + Rol_GetMyMaxRoleInCtr (Gbl.Forum.Ctr.CtrCod) >= Rol_ROLE_STUDENT); break; case For_FORUM_CENTRE_TCHS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInCtr (Gbl.Forum.Ctr.CtrCod) >= Rol_ROLE_TEACHER); + Rol_GetMyMaxRoleInCtr (Gbl.Forum.Ctr.CtrCod) >= Rol_ROLE_TEACHER); break; case For_FORUM_INSTITUTION_USRS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInIns (Gbl.Forum.Ins.InsCod) >= Rol_ROLE_STUDENT); + Rol_GetMyMaxRoleInIns (Gbl.Forum.Ins.InsCod) >= Rol_ROLE_STUDENT); break; case For_FORUM_INSTITUTION_TCHS: ICanSeeForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInIns (Gbl.Forum.Ins.InsCod) >= Rol_ROLE_TEACHER); + Rol_GetMyMaxRoleInIns (Gbl.Forum.Ins.InsCod) >= Rol_ROLE_TEACHER); break; case For_FORUM_GLOBAL_USRS: case For_FORUM_SWAD_USRS: @@ -1775,7 +1775,7 @@ static long For_WriteLinksToInsForums (long InsCod,bool IsLastIns,bool IsLastIte if (InsCod > 0) { ICanSeeTeacherForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInIns (InsCod) >= Rol_ROLE_TEACHER); + Rol_GetMyMaxRoleInIns (InsCod) >= Rol_ROLE_TEACHER); /***** Get data of this institution *****/ Gbl.Forum.Ins.InsCod = InsCod; @@ -1808,7 +1808,7 @@ static long For_WriteLinksToCtrForums (long CtrCod,bool IsLastCtr,bool IsLastIte if (CtrCod > 0) { ICanSeeTeacherForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInCtr (CtrCod) >= Rol_ROLE_TEACHER); + Rol_GetMyMaxRoleInCtr (CtrCod) >= Rol_ROLE_TEACHER); /***** Get data of this degree *****/ Gbl.Forum.Ctr.CtrCod = CtrCod; @@ -1841,7 +1841,7 @@ static long For_WriteLinksToDegForums (long DegCod,bool IsLastDeg,bool IsLastIte if (DegCod > 0) { ICanSeeTeacherForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyMaxRoleInDeg (DegCod) >= Rol_ROLE_TEACHER); + Rol_GetMyMaxRoleInDeg (DegCod) >= Rol_ROLE_TEACHER); /***** Get data of this degree *****/ Gbl.Forum.Deg.DegCod = DegCod; @@ -1874,7 +1874,7 @@ static long For_WriteLinksToCrsForums (long CrsCod,bool IsLastCrs,bool IsLastIte if (CrsCod > 0) { ICanSeeTeacherForum = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER || - Usr_GetMyRoleInCrs (CrsCod) >= Rol_ROLE_TEACHER); + Rol_GetMyRoleInCrs (CrsCod) >= Rol_ROLE_TEACHER); /***** Get data of this course *****/ Gbl.Forum.Crs.CrsCod = CrsCod; diff --git a/swad_record.c b/swad_record.c index e0b8737a..4a49cc5d 100644 --- a/swad_record.c +++ b/swad_record.c @@ -2814,7 +2814,7 @@ Rol_Role_t Rec_GetRoleFromRecordForm (void) /***** Get role as a parameter from form *****/ Par_GetParToText ("Role",UnsignedStr,10); - Role = Usr_ConvertUnsignedStrToRole (UnsignedStr); + Role = Rol_ConvertUnsignedStrToRole (UnsignedStr); /***** Check if I can register a user with the received role in current course *****/ diff --git a/swad_role.c b/swad_role.c new file mode 100644 index 00000000..c3f894d4 --- /dev/null +++ b/swad_role.c @@ -0,0 +1,435 @@ +// swad_role.c: user's roles + +/* + SWAD (Shared Workspace At a Distance), + is a web platform developed at the University of Granada (Spain), + and used to support university teaching. + + This file is part of SWAD core. + Copyright (C) 1999-2014 Antonio Caņas Vargas + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General 3 License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ +/*****************************************************************************/ +/*********************************** Headers *********************************/ +/*****************************************************************************/ + +#include "swad_database.h" +#include "swad_global.h" +#include "swad_parameter.h" +#include "swad_role.h" + +/*****************************************************************************/ +/****************************** Public constants *****************************/ +/*****************************************************************************/ + +/*****************************************************************************/ +/***************************** Private constants *****************************/ +/*****************************************************************************/ + +/*****************************************************************************/ +/****************************** Internal types *******************************/ +/*****************************************************************************/ + +/*****************************************************************************/ +/************** External global variables from others modules ****************/ +/*****************************************************************************/ + +extern struct Globals Gbl; + +/*****************************************************************************/ +/************************* Internal global variables *************************/ +/*****************************************************************************/ + +/*****************************************************************************/ +/***************************** Private prototypes ****************************/ +/*****************************************************************************/ + +static void Rol_PutOneRoleRegRemUsrsCrs (Rol_Role_t Role,bool Checked); + +/*****************************************************************************/ +/****************** Get number of available roles for me *********************/ +/*****************************************************************************/ + +unsigned Rol_GetNumAvailableRoles (void) + { + Rol_Role_t Role; + unsigned NumAvailableRoles = 0; + + for (Role = Rol_ROLE_GUEST; + Role < Rol_NUM_ROLES; + Role++) + if (Gbl.Usrs.Me.AvailableRoles & (1 << Role)) + NumAvailableRoles++; + + return NumAvailableRoles; + } + +/*****************************************************************************/ +/************ Get maximum role of a user in all his/her courses **************/ +/*****************************************************************************/ + +Rol_Role_t Rol_GetMaxRole (unsigned Roles) + { + if (Roles & (1 << Rol_ROLE_TEACHER)) + return Rol_ROLE_TEACHER; + if (Roles & (1 << Rol_ROLE_STUDENT)) + return Rol_ROLE_STUDENT; + return Rol_ROLE_GUEST; + } + +/*****************************************************************************/ +/******************* Get my maximum role in a institution ********************/ +/*****************************************************************************/ + +Rol_Role_t Rol_GetMyMaxRoleInIns (long InsCod) + { + unsigned NumMyIns; + + if (InsCod > 0) + { + /***** Fill the list with the institutions I belong to (if not already filled) *****/ + Usr_GetMyInstitutions (); + + /***** Check if the institution passed as parameter is any of my institutions *****/ + for (NumMyIns = 0; + NumMyIns < Gbl.Usrs.Me.MyInstitutions.Num; + NumMyIns++) + if (Gbl.Usrs.Me.MyInstitutions.Inss[NumMyIns].InsCod == InsCod) + return Gbl.Usrs.Me.MyInstitutions.Inss[NumMyIns].MaxRole; + return Rol_ROLE_GUEST; + } + return Rol_ROLE_UNKNOWN; // No degree + } + +/*****************************************************************************/ +/********************** Get my maximum role in a centre **********************/ +/*****************************************************************************/ + +Rol_Role_t Rol_GetMyMaxRoleInCtr (long CtrCod) + { + unsigned NumMyCtr; + + if (CtrCod > 0) + { + /***** Fill the list with the centres I belong to (if not already filled) *****/ + Usr_GetMyCentres (); + + /***** Check if the centre passed as parameter is any of my centres *****/ + for (NumMyCtr = 0; + NumMyCtr < Gbl.Usrs.Me.MyCentres.Num; + NumMyCtr++) + if (Gbl.Usrs.Me.MyCentres.Ctrs[NumMyCtr].CtrCod == CtrCod) + return Gbl.Usrs.Me.MyCentres.Ctrs[NumMyCtr].MaxRole; + return Rol_ROLE_GUEST; + } + return Rol_ROLE_UNKNOWN; // No centre + } + +/*****************************************************************************/ +/********************** Get my maximum role in a degree **********************/ +/*****************************************************************************/ + +Rol_Role_t Rol_GetMyMaxRoleInDeg (long DegCod) + { + unsigned NumMyDeg; + + if (DegCod > 0) + { + /***** Fill the list with the degrees I belong to (if not already filled) *****/ + Usr_GetMyDegrees (); + + /***** Check if the degree passed as parameter is any of my degrees *****/ + for (NumMyDeg = 0; + NumMyDeg < Gbl.Usrs.Me.MyDegrees.Num; + NumMyDeg++) + if (Gbl.Usrs.Me.MyDegrees.Degs[NumMyDeg].DegCod == DegCod) + return Gbl.Usrs.Me.MyDegrees.Degs[NumMyDeg].MaxRole; + return Rol_ROLE_GUEST; + } + return Rol_ROLE_UNKNOWN; // No degree + } + +/*****************************************************************************/ +/*************************** Get my role in a course *************************/ +/*****************************************************************************/ + +Rol_Role_t Rol_GetMyRoleInCrs (long CrsCod) + { + unsigned NumMyCrs; + + if (CrsCod > 0) + { + /***** Fill the list with the courses I belong to (if not already filled) *****/ + Usr_GetMyCourses (); + + /***** Check if the course passed as parameter is any of my courses *****/ + for (NumMyCrs = 0; + NumMyCrs < Gbl.Usrs.Me.MyCourses.Num; + NumMyCrs++) + if (Gbl.Usrs.Me.MyCourses.Crss[NumMyCrs].CrsCod == CrsCod) + return Gbl.Usrs.Me.MyCourses.Crss[NumMyCrs].Role; + return Rol_ROLE_GUEST; + } + return Rol_ROLE_UNKNOWN; // No course + } + +/*****************************************************************************/ +/********************** Get role of a user in a course ***********************/ +/*****************************************************************************/ + +Rol_Role_t Rol_GetRoleInCrs (long CrsCod,long UsrCod) + { + char Query[256]; + MYSQL_RES *mysql_res; + MYSQL_ROW row; + Rol_Role_t Role; + + if (CrsCod > 0) + { + /***** Get rol of a user in a course from database. + The result of the query will have one row or none *****/ + sprintf (Query,"SELECT Role FROM crs_usr" + " WHERE CrsCod='%ld' AND UsrCod='%ld'", + CrsCod,UsrCod); + if (DB_QuerySELECT (Query,&mysql_res,"can not get the role of a user in a course") == 1) // User belongs to the course + { + row = mysql_fetch_row (mysql_res); + Role = Rol_ConvertUnsignedStrToRole (row[0]); + } + else // User does not belong to the course + Role = Rol_ROLE_UNKNOWN; + + /***** Free structure that stores the query result *****/ + DB_FreeMySQLResult (&mysql_res); + } + else // No course + Role = Rol_ROLE_UNKNOWN; + + return Role; + } + +/*****************************************************************************/ +/**************** Get roles of a user in all his/her courses *****************/ +/*****************************************************************************/ + +unsigned Rol_GetRolesInAllCrss (long UsrCod) + { + char Query[512]; + MYSQL_RES *mysql_res; + MYSQL_ROW row; + unsigned NumRole; + unsigned NumRoles; + Rol_Role_t Role; + unsigned Roles = 0; + + /***** Get distinct roles in all the courses of the user from database *****/ + sprintf (Query,"SELECT DISTINCT(Role) FROM crs_usr" + " WHERE UsrCod='%ld'", + UsrCod); + NumRoles = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get the roles of a user in all his/her courses"); + for (NumRole = 0; + NumRole < NumRoles; + NumRole++) + { + row = mysql_fetch_row (mysql_res); + if ((Role = Rol_ConvertUnsignedStrToRole (row[0])) != Rol_ROLE_UNKNOWN) + Roles |= (1 << Role); + } + + /***** Free structure that stores the query result *****/ + DB_FreeMySQLResult (&mysql_res); + + return Roles; + } + +/*****************************************************************************/ +/********************** Get role from unsigned string ************************/ +/*****************************************************************************/ + +Rol_Role_t Rol_ConvertUnsignedStrToRole (const char *UnsignedStr) + { + unsigned UnsignedNum; + + if (sscanf (UnsignedStr,"%u",&UnsignedNum) == 1) + return (UnsignedNum >= Rol_NUM_ROLES) ? Rol_ROLE_UNKNOWN : + (Rol_Role_t) UnsignedNum; + return Rol_ROLE_UNKNOWN; + } + +/*****************************************************************************/ +/****** Get roles (several bits can be activated) from unsigned string *******/ +/*****************************************************************************/ + +unsigned Rol_ConvertUnsignedStrToRoles (const char *UnsignedStr) + { + unsigned UnsignedNum; + + if (sscanf (UnsignedStr,"%u",&UnsignedNum) == 1) + return UnsignedNum; + return 0; + } + +/*****************************************************************************/ +/*********************** Put a form to change my role ************************/ +/*****************************************************************************/ + +void Rol_PutFormToChangeMyRole (bool FormInHead) + { + extern const char *Txt_ROLES_SINGULAR_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; + static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] = + { + 90, // Lay_LAYOUT_DESKTOP + 90, // Lay_LAYOUT_MOBILE + }; + Rol_Role_t Role; + + Act_FormStart (ActChgMyRol); + fprintf (Gbl.F.Out,"" + ""); + } + +/*****************************************************************************/ +/****************************** Change my role *******************************/ +/*****************************************************************************/ + +void Rol_ChangeMyRole (void) + { + char UnsignedStr[10+1]; + unsigned UnsignedNum; + + /***** Get parameter with the new logged role ******/ + Par_GetParToText ("UsrTyp",UnsignedStr,10); + if (sscanf (UnsignedStr,"%u",&UnsignedNum) == 1) + { + /* Check if new role is a correct type *****/ + if (UnsignedNum >= Rol_NUM_ROLES) + return; + + /* Check if new role is allowed for me */ + if (!(Gbl.Usrs.Me.AvailableRoles & (1 << UnsignedNum))) + return; + + /* New role is correct and is allowed for me, so change my logged user type */ + Gbl.Usrs.Me.LoggedRole = (Rol_Role_t) UnsignedNum; + + /* Update logged role in session */ + Ses_UpdateSessionDataInDB (); + } + } + +/*****************************************************************************/ +/********************* Write selector of users' roles ************************/ +/*****************************************************************************/ + +void Rol_WriteSelectorRoles (unsigned Roles) + { + extern const char *Txt_ROLES_PLURAL_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; + Rol_Role_t Role; + + for (Role = Rol_ROLE_STUDENT; + Role <= Rol_ROLE_TEACHER; + Role++) + { + fprintf (Gbl.F.Out,"%s
    ", + Txt_ROLES_PLURAL_abc[Role][Usr_SEX_UNKNOWN]); + } + } + +/*****************************************************************************/ +/************************* Get selected users' roles *************************/ +/*****************************************************************************/ + +void Rol_GetSelectedRoles (unsigned *Roles) + { + char StrRoles[(10+1)*2]; + const char *Ptr; + char UnsignedStr[10+1]; + Rol_Role_t Role; + + Par_GetParMultiToText ("Roles",StrRoles,(10+1)*2); + *Roles = 0; + for (Ptr = StrRoles; + *Ptr;) + { + Par_GetNextStrUntilSeparParamMult (&Ptr,UnsignedStr,10); + if (sscanf (UnsignedStr,"%u",&Role) != 1) + Lay_ShowErrorAndExit ("can not get user's role"); + *Roles |= (1 << Role); + } + } + +/*****************************************************************************/ +/*** Select types of user to register/remove users to/from current course ****/ +/*****************************************************************************/ + +void Rol_PutAllRolesRegRemUsrsCrs (void) + { + extern const char *The_ClassFormul[The_NUM_THEMES]; + + /***** Students or teachers *****/ + fprintf (Gbl.F.Out,"
    " + "
      ", + The_ClassFormul[Gbl.Prefs.Theme]); + Rol_PutOneRoleRegRemUsrsCrs (Rol_ROLE_STUDENT,true); + Rol_PutOneRoleRegRemUsrsCrs (Rol_ROLE_TEACHER,false); + fprintf (Gbl.F.Out,"
    " + "
    "); + } + +/*****************************************************************************/ +/*** Select types of user to register/remove users to/from current course ****/ +/*****************************************************************************/ + +static void Rol_PutOneRoleRegRemUsrsCrs (Rol_Role_t Role,bool Checked) + { + extern const char *Txt_ROLES_SINGULAR_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; + + fprintf (Gbl.F.Out,"
  • " + "%s
  • ", + Txt_ROLES_SINGULAR_Abc[Role][Usr_SEX_UNKNOWN]); + } diff --git a/swad_role.h b/swad_role.h index 6cd46b0f..4a00113e 100644 --- a/swad_role.h +++ b/swad_role.h @@ -63,4 +63,24 @@ typedef enum /****************************** Public prototypes ****************************/ /*****************************************************************************/ +unsigned Rol_GetNumAvailableRoles (void); +Rol_Role_t Rol_GetMaxRole (unsigned Roles); +Rol_Role_t Rol_GetMyMaxRoleInIns (long InsCod); +Rol_Role_t Rol_GetMyMaxRoleInCtr (long CtrCod); +Rol_Role_t Rol_GetMyMaxRoleInDeg (long DegCod); +Rol_Role_t Rol_GetMyRoleInCrs (long CrsCod); +Rol_Role_t Rol_GetRoleInCrs (long CrsCod,long UsrCod); +unsigned Rol_GetRolesInAllCrss (long UsrCod); + +Rol_Role_t Rol_ConvertUnsignedStrToRole (const char *UnsignedStr); +unsigned Rol_ConvertUnsignedStrToRoles (const char *UnsignedStr); + +void Rol_PutFormToChangeMyRole (bool FormInHead); +void Rol_ChangeMyRole (void); + +void Rol_WriteSelectorRoles (unsigned Roles); +void Rol_GetSelectedRoles (unsigned *Roles); + +void Rol_PutAllRolesRegRemUsrsCrs (void); + #endif diff --git a/swad_survey.c b/swad_survey.c index 8d015c70..81e4e2cd 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -1651,7 +1651,7 @@ void Svy_RequestCreatOrEditSvy (void) "%s:" "", Txt_Users); - Usr_WriteSelectorRoles (Svy.Roles); + Rol_WriteSelectorRoles (Svy.Roles); fprintf (Gbl.F.Out,"" ""); @@ -1879,7 +1879,7 @@ void Svy_RecFormSurvey (void) NewSvy.DateTimes[Svy_END_TIME].Time.Second = 59; /***** Get users who can answer this survey *****/ - Usr_GetSelectedRoles (&(NewSvy.Roles)); + Rol_GetSelectedRoles (&(NewSvy.Roles)); /***** Check if title is correct *****/ if (NewSvy.Title[0]) // If there's a survey title diff --git a/swad_user.c b/swad_user.c index 0a46d775..4faa7a44 100644 --- a/swad_user.c +++ b/swad_user.c @@ -114,8 +114,6 @@ static Usr_Sex_t Usr_GetSexFromStr (const char *Str); static bool Usr_CheckIfMyBirthdayHasNotBeenCongratulated (void); static void Usr_InsertMyBirthday (void); -static unsigned Usr_GetNumAvailableRoles (void); -static void Usr_PutFormToChangeMyRole (bool FormInHead); static void Usr_GetParamOtherUsrIDNickOrEMail (void); @@ -124,7 +122,6 @@ static bool Usr_ChkUsrAndGetUsrDataFromExternalLogin (void); static bool Usr_ChkUsrAndGetUsrDataFromSession (void); static void Usr_SetUsrRoleAndPrefs (void); -static Rol_Role_t Usr_GetMaxRole (unsigned Roles); static void Usr_InsertMyLastData (void); @@ -176,51 +173,6 @@ static unsigned Usr_GetNumUsrsBelongingToAnyCrs (Rol_Role_t Role); static float Usr_GetNumCrssPerUsr (Rol_Role_t Role); static float Usr_GetNumUsrsPerCrs (Rol_Role_t Role); -/*****************************************************************************/ -/********************* Write selector of users' roles ************************/ -/*****************************************************************************/ - -void Usr_WriteSelectorRoles (unsigned Roles) - { - extern const char *Txt_ROLES_PLURAL_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; - Rol_Role_t Role; - - for (Role = Rol_ROLE_STUDENT; - Role <= Rol_ROLE_TEACHER; - Role++) - { - fprintf (Gbl.F.Out,"%s
    ", - Txt_ROLES_PLURAL_abc[Role][Usr_SEX_UNKNOWN]); - } - } - -/*****************************************************************************/ -/************************* Get selected users' roles *************************/ -/*****************************************************************************/ - -void Usr_GetSelectedRoles (unsigned *Roles) - { - char StrRoles[(10+1)*2]; - const char *Ptr; - char UnsignedStr[10+1]; - Rol_Role_t Role; - - Par_GetParMultiToText ("Roles",StrRoles,(10+1)*2); - *Roles = 0; - for (Ptr = StrRoles; - *Ptr;) - { - Par_GetNextStrUntilSeparParamMult (&Ptr,UnsignedStr,10); - if (sscanf (UnsignedStr,"%u",&Role) != 1) - Lay_ShowErrorAndExit ("can not get user's role"); - *Roles |= (1 << Role); - } - } - /*****************************************************************************/ /**** Show alert about number of clicks remaining before sending my photo ****/ /*****************************************************************************/ @@ -415,33 +367,6 @@ void Usr_GetUsrCodFromEncryptedUsrCod (struct UsrData *UsrDat) UsrDat->UsrCod = -1L; } -/*****************************************************************************/ -/********************** Get role from unsigned string ************************/ -/*****************************************************************************/ - -Rol_Role_t Usr_ConvertUnsignedStrToRole (const char *UnsignedStr) - { - unsigned UnsignedNum; - - if (sscanf (UnsignedStr,"%u",&UnsignedNum) == 1) - return (UnsignedNum >= Rol_NUM_ROLES) ? Rol_ROLE_UNKNOWN : - (Rol_Role_t) UnsignedNum; - return Rol_ROLE_UNKNOWN; - } - -/*****************************************************************************/ -/****** Get roles (several bits can be activated) from unsigned string *******/ -/*****************************************************************************/ - -unsigned Usr_ConvertUnsignedStrToRoles (const char *UnsignedStr) - { - unsigned UnsignedNum; - - if (sscanf (UnsignedStr,"%u",&UnsignedNum) == 1) - return UnsignedNum; - return 0; - } - /*****************************************************************************/ /************ Get user's data from database giving a user's code *************/ /*****************************************************************************/ @@ -489,8 +414,8 @@ void Usr_GetUsrDataFromUsrCod (struct UsrData *UsrDat) UsrDat->Password[sizeof (UsrDat->Password)-1] = '\0'; /* Get roles */ - UsrDat->RoleInCurrentCrsDB = Usr_GetRoleInCrs (Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod); - UsrDat->Roles = Usr_GetRolesInAllCrss (UsrDat->UsrCod); + UsrDat->RoleInCurrentCrsDB = Rol_GetRoleInCrs (Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod); + UsrDat->Roles = Rol_GetRolesInAllCrss (UsrDat->UsrCod); if (UsrDat->RoleInCurrentCrsDB == Rol_ROLE_UNKNOWN) UsrDat->RoleInCurrentCrsDB = (UsrDat->Roles < (1 << Rol_ROLE_STUDENT)) ? Rol_ROLE_GUEST : // User does not belong to any course @@ -713,171 +638,6 @@ static Usr_Sex_t Usr_GetSexFromStr (const char *Str) return Usr_SEX_UNKNOWN; } -/*****************************************************************************/ -/******************* Get my maximum role in a institution ********************/ -/*****************************************************************************/ - -Rol_Role_t Usr_GetMyMaxRoleInIns (long InsCod) - { - unsigned NumMyIns; - - if (InsCod > 0) - { - /***** Fill the list with the institutions I belong to (if not already filled) *****/ - Usr_GetMyInstitutions (); - - /***** Check if the institution passed as parameter is any of my institutions *****/ - for (NumMyIns = 0; - NumMyIns < Gbl.Usrs.Me.MyInstitutions.Num; - NumMyIns++) - if (Gbl.Usrs.Me.MyInstitutions.Inss[NumMyIns].InsCod == InsCod) - return Gbl.Usrs.Me.MyInstitutions.Inss[NumMyIns].MaxRole; - return Rol_ROLE_GUEST; - } - return Rol_ROLE_UNKNOWN; // No degree - } - -/*****************************************************************************/ -/********************** Get my maximum role in a centre **********************/ -/*****************************************************************************/ - -Rol_Role_t Usr_GetMyMaxRoleInCtr (long CtrCod) - { - unsigned NumMyCtr; - - if (CtrCod > 0) - { - /***** Fill the list with the centres I belong to (if not already filled) *****/ - Usr_GetMyCentres (); - - /***** Check if the centre passed as parameter is any of my centres *****/ - for (NumMyCtr = 0; - NumMyCtr < Gbl.Usrs.Me.MyCentres.Num; - NumMyCtr++) - if (Gbl.Usrs.Me.MyCentres.Ctrs[NumMyCtr].CtrCod == CtrCod) - return Gbl.Usrs.Me.MyCentres.Ctrs[NumMyCtr].MaxRole; - return Rol_ROLE_GUEST; - } - return Rol_ROLE_UNKNOWN; // No centre - } - -/*****************************************************************************/ -/********************** Get my maximum role in a degree **********************/ -/*****************************************************************************/ - -Rol_Role_t Usr_GetMyMaxRoleInDeg (long DegCod) - { - unsigned NumMyDeg; - - if (DegCod > 0) - { - /***** Fill the list with the degrees I belong to (if not already filled) *****/ - Usr_GetMyDegrees (); - - /***** Check if the degree passed as parameter is any of my degrees *****/ - for (NumMyDeg = 0; - NumMyDeg < Gbl.Usrs.Me.MyDegrees.Num; - NumMyDeg++) - if (Gbl.Usrs.Me.MyDegrees.Degs[NumMyDeg].DegCod == DegCod) - return Gbl.Usrs.Me.MyDegrees.Degs[NumMyDeg].MaxRole; - return Rol_ROLE_GUEST; - } - return Rol_ROLE_UNKNOWN; // No degree - } - -/*****************************************************************************/ -/*************************** Get my role in a course *************************/ -/*****************************************************************************/ - -Rol_Role_t Usr_GetMyRoleInCrs (long CrsCod) - { - unsigned NumMyCrs; - - if (CrsCod > 0) - { - /***** Fill the list with the courses I belong to (if not already filled) *****/ - Usr_GetMyCourses (); - - /***** Check if the course passed as parameter is any of my courses *****/ - for (NumMyCrs = 0; - NumMyCrs < Gbl.Usrs.Me.MyCourses.Num; - NumMyCrs++) - if (Gbl.Usrs.Me.MyCourses.Crss[NumMyCrs].CrsCod == CrsCod) - return Gbl.Usrs.Me.MyCourses.Crss[NumMyCrs].Role; - return Rol_ROLE_GUEST; - } - return Rol_ROLE_UNKNOWN; // No course - } - -/*****************************************************************************/ -/********************** Get role of a user in a course ***********************/ -/*****************************************************************************/ - -Rol_Role_t Usr_GetRoleInCrs (long CrsCod,long UsrCod) - { - char Query[256]; - MYSQL_RES *mysql_res; - MYSQL_ROW row; - Rol_Role_t Role; - - if (CrsCod > 0) - { - /***** Get rol of a user in a course from database. - The result of the query will have one row or none *****/ - sprintf (Query,"SELECT Role FROM crs_usr" - " WHERE CrsCod='%ld' AND UsrCod='%ld'", - CrsCod,UsrCod); - if (DB_QuerySELECT (Query,&mysql_res,"can not get the role of a user in a course") == 1) // User belongs to the course - { - row = mysql_fetch_row (mysql_res); - Role = Usr_ConvertUnsignedStrToRole (row[0]); - } - else // User does not belong to the course - Role = Rol_ROLE_UNKNOWN; - - /***** Free structure that stores the query result *****/ - DB_FreeMySQLResult (&mysql_res); - } - else // No course - Role = Rol_ROLE_UNKNOWN; - - return Role; - } - -/*****************************************************************************/ -/**************** Get roles of a user in all his/her courses *****************/ -/*****************************************************************************/ - -unsigned Usr_GetRolesInAllCrss (long UsrCod) - { - char Query[512]; - MYSQL_RES *mysql_res; - MYSQL_ROW row; - unsigned NumRole; - unsigned NumRoles; - Rol_Role_t Role; - unsigned Roles = 0; - - /***** Get distinct roles in all the courses of the user from database *****/ - sprintf (Query,"SELECT DISTINCT(Role) FROM crs_usr" - " WHERE UsrCod='%ld'", - UsrCod); - NumRoles = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get the roles of a user in all his/her courses"); - for (NumRole = 0; - NumRole < NumRoles; - NumRole++) - { - row = mysql_fetch_row (mysql_res); - if ((Role = Usr_ConvertUnsignedStrToRole (row[0])) != Rol_ROLE_UNKNOWN) - Roles |= (1 << Role); - } - - /***** Free structure that stores the query result *****/ - DB_FreeMySQLResult (&mysql_res); - - return Roles; - } - /*****************************************************************************/ /********** Build full name using FirstName, Surname1 and Surname2 ***********/ /*****************************************************************************/ @@ -1018,7 +778,7 @@ void Usr_GetMyInstitutions (void) Lay_ShowErrorAndExit ("Maximum number of institutions of a user exceeded."); Gbl.Usrs.Me.MyInstitutions.Inss[Gbl.Usrs.Me.MyInstitutions.Num].InsCod = InsCod; - Gbl.Usrs.Me.MyInstitutions.Inss[Gbl.Usrs.Me.MyInstitutions.Num].MaxRole = Usr_ConvertUnsignedStrToRole (row[1]); + Gbl.Usrs.Me.MyInstitutions.Inss[Gbl.Usrs.Me.MyInstitutions.Num].MaxRole = Rol_ConvertUnsignedStrToRole (row[1]); Gbl.Usrs.Me.MyInstitutions.Num++; } @@ -1065,7 +825,7 @@ void Usr_GetMyCentres (void) Lay_ShowErrorAndExit ("Maximum number of centres of a user exceeded."); Gbl.Usrs.Me.MyCentres.Ctrs[Gbl.Usrs.Me.MyCentres.Num].CtrCod = CtrCod; - Gbl.Usrs.Me.MyCentres.Ctrs[Gbl.Usrs.Me.MyCentres.Num].MaxRole = Usr_ConvertUnsignedStrToRole (row[1]); + Gbl.Usrs.Me.MyCentres.Ctrs[Gbl.Usrs.Me.MyCentres.Num].MaxRole = Rol_ConvertUnsignedStrToRole (row[1]); Gbl.Usrs.Me.MyCentres.Num++; } @@ -1112,7 +872,7 @@ void Usr_GetMyDegrees (void) Lay_ShowErrorAndExit ("Maximum number of degrees of a user exceeded."); Gbl.Usrs.Me.MyDegrees.Degs[Gbl.Usrs.Me.MyDegrees.Num].DegCod = DegCod; - Gbl.Usrs.Me.MyDegrees.Degs[Gbl.Usrs.Me.MyDegrees.Num].MaxRole = Usr_ConvertUnsignedStrToRole (row[1]); + Gbl.Usrs.Me.MyDegrees.Degs[Gbl.Usrs.Me.MyDegrees.Num].MaxRole = Rol_ConvertUnsignedStrToRole (row[1]); Gbl.Usrs.Me.MyDegrees.Num++; } @@ -1159,7 +919,7 @@ void Usr_GetMyCourses (void) Lay_ShowErrorAndExit ("Maximum number of courses of a user exceeded."); Gbl.Usrs.Me.MyCourses.Crss[Gbl.Usrs.Me.MyCourses.Num].CrsCod = CrsCod; - Gbl.Usrs.Me.MyCourses.Crss[Gbl.Usrs.Me.MyCourses.Num].Role = Usr_ConvertUnsignedStrToRole (row[1]); + Gbl.Usrs.Me.MyCourses.Crss[Gbl.Usrs.Me.MyCourses.Num].Role = Rol_ConvertUnsignedStrToRole (row[1]); Gbl.Usrs.Me.MyCourses.Crss[Gbl.Usrs.Me.MyCourses.Num].DegCod = Str_ConvertStrCodToLongCod (row[2]); Gbl.Usrs.Me.MyCourses.Num++; } @@ -1678,13 +1438,13 @@ void Usr_WriteLoggedUsrHead (void) char UsrFullName[(Usr_MAX_BYTES_NAME+1)*3]; /***** User's type *****/ - if (Usr_GetNumAvailableRoles () == 1) + if (Rol_GetNumAvailableRoles () == 1) fprintf (Gbl.F.Out,"%s: ", The_ClassUsr[Gbl.Prefs.Theme], Txt_ROLES_SINGULAR_Abc[Gbl.Usrs.Me.LoggedRole][Gbl.Usrs.Me.UsrDat.Sex]); else { - Usr_PutFormToChangeMyRole (true); + Rol_PutFormToChangeMyRole (true); fprintf (Gbl.F.Out," ", The_ClassUsr[Gbl.Prefs.Theme]); } @@ -1715,59 +1475,6 @@ void Usr_WriteLoggedUsrHead (void) fprintf (Gbl.F.Out,""); } -/*****************************************************************************/ -/****************** Get number of available roles for me *********************/ -/*****************************************************************************/ - -static unsigned Usr_GetNumAvailableRoles (void) - { - Rol_Role_t Role; - unsigned NumAvailableRoles = 0; - - for (Role = Rol_ROLE_GUEST; - Role < Rol_NUM_ROLES; - Role++) - if (Gbl.Usrs.Me.AvailableRoles & (1 << Role)) - NumAvailableRoles++; - - return NumAvailableRoles; - } - -/*****************************************************************************/ -/*********************** Put a form to change my role ************************/ -/*****************************************************************************/ - -static void Usr_PutFormToChangeMyRole (bool FormInHead) - { - extern const char *Txt_ROLES_SINGULAR_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; - static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] = - { - 90, // Lay_LAYOUT_DESKTOP - 90, // Lay_LAYOUT_MOBILE - }; - Rol_Role_t Role; - - Act_FormStart (ActChgMyRol); - fprintf (Gbl.F.Out,"" - ""); - } - /*****************************************************************************/ /*************** Put a form to close current session (log out) ***************/ /*****************************************************************************/ @@ -2469,12 +2176,12 @@ static void Usr_SetUsrRoleAndPrefs (void) Deg_InitCurrentCourse (); /* Get again my role in this course */ - Gbl.Usrs.Me.UsrDat.RoleInCurrentCrsDB = Usr_GetRoleInCrs (Gbl.CurrentCrs.Crs.CrsCod,Gbl.Usrs.Me.UsrDat.UsrCod); + Gbl.Usrs.Me.UsrDat.RoleInCurrentCrsDB = Rol_GetRoleInCrs (Gbl.CurrentCrs.Crs.CrsCod,Gbl.Usrs.Me.UsrDat.UsrCod); } } /***** Set the user's role I am logged *****/ - Gbl.Usrs.Me.MaxRole = Usr_GetMaxRole (Gbl.Usrs.Me.UsrDat.Roles); + Gbl.Usrs.Me.MaxRole = Rol_GetMaxRole (Gbl.Usrs.Me.UsrDat.Roles); Gbl.Usrs.Me.LoggedRole = (Gbl.Usrs.Me.RoleFromSession == Rol_ROLE_UNKNOWN) ? // If no logged role retrieved from session... Gbl.Usrs.Me.MaxRole : // ...set current logged role to maximum role in database Gbl.Usrs.Me.RoleFromSession; // Get logged role from session @@ -2541,19 +2248,6 @@ static void Usr_SetUsrRoleAndPrefs (void) } } -/*****************************************************************************/ -/************ Get maximum role of a user in all his/her courses **************/ -/*****************************************************************************/ - -static Rol_Role_t Usr_GetMaxRole (unsigned Roles) - { - if (Roles & (1 << Rol_ROLE_TEACHER)) - return Rol_ROLE_TEACHER; - if (Roles & (1 << Rol_ROLE_STUDENT)) - return Rol_ROLE_STUDENT; - return Rol_ROLE_GUEST; - } - /*****************************************************************************/ /******** Write warning when degree type does not allow direct login *********/ /*****************************************************************************/ @@ -2588,35 +2282,6 @@ void Usr_WarningWhenDegreeTypeDoesntAllowDirectLogin (void) } } -/*****************************************************************************/ -/****************************** Change my role *******************************/ -/*****************************************************************************/ - -void Usr_ChangeMyRole (void) - { - char UnsignedStr[10+1]; - unsigned UnsignedNum; - - /***** Get parameter with the new logged role ******/ - Par_GetParToText ("UsrTyp",UnsignedStr,10); - if (sscanf (UnsignedStr,"%u",&UnsignedNum) == 1) - { - /* Check if new role is a correct type *****/ - if (UnsignedNum >= Rol_NUM_ROLES) - return; - - /* Check if new role is allowed for me */ - if (!(Gbl.Usrs.Me.AvailableRoles & (1 << UnsignedNum))) - return; - - /* New role is correct and is allowed for me, so change my logged user type */ - Gbl.Usrs.Me.LoggedRole = (Rol_Role_t) UnsignedNum; - - /* Update logged role in session */ - Ses_UpdateSessionDataInDB (); - } - } - /*****************************************************************************/ /************** Show forms to change my role and to log out ******************/ /*****************************************************************************/ @@ -2645,11 +2310,11 @@ void Usr_ShowFormsRoleAndLogout (void) Lay_ShowAlert (Lay_INFO,Gbl.Message); /***** Put a form to change my role *****/ - if (Usr_GetNumAvailableRoles () > 1) + if (Rol_GetNumAvailableRoles () > 1) { fprintf (Gbl.F.Out,"
    %s: ", The_ClassFormul[Gbl.Prefs.Theme],Txt_Role); - Usr_PutFormToChangeMyRole (false); + Rol_PutFormToChangeMyRole (false); fprintf (Gbl.F.Out,"
    "); } } diff --git a/swad_user.h b/swad_user.h index 428b1b0a..4b0ee0e8 100644 --- a/swad_user.h +++ b/swad_user.h @@ -190,9 +190,6 @@ struct ListUsrCods /****************************** Public prototypes ****************************/ /*****************************************************************************/ -void Usr_WriteSelectorRoles (unsigned Roles); -void Usr_GetSelectedRoles (unsigned *Roles); - void Usr_InformAboutNumClicksBeforePhoto (void); void Usr_UsrDataConstructor (struct UsrData *UsrDat); @@ -203,16 +200,8 @@ void Usr_GetAllUsrDataFromUsrCod (struct UsrData *UsrDat); void Usr_AllocateListUsrCods (struct ListUsrCods *ListUsrCods); void Usr_FreeListUsrCods (struct ListUsrCods *ListUsrCods); void Usr_GetUsrCodFromEncryptedUsrCod (struct UsrData *UsrDat); -Rol_Role_t Usr_ConvertUnsignedStrToRole (const char *UnsignedStr); -unsigned Usr_ConvertUnsignedStrToRoles (const char *UnsignedStr); void Usr_GetUsrDataFromUsrCod (struct UsrData *UsrDat); -Rol_Role_t Usr_GetMyMaxRoleInIns (long InsCod); -Rol_Role_t Usr_GetMyMaxRoleInCtr (long CtrCod); -Rol_Role_t Usr_GetMyMaxRoleInDeg (long DegCod); -Rol_Role_t Usr_GetMyRoleInCrs (long CrsCod); -Rol_Role_t Usr_GetRoleInCrs (long CrsCod,long UsrCod); -unsigned Usr_GetRolesInAllCrss (long UsrCod); void Usr_BuildFullName (struct UsrData *UsrDat); void Usr_RestrictLengthAndWriteName (struct UsrData *UsrDat,unsigned MaxChars); @@ -254,7 +243,6 @@ bool Usr_GetParamOtherUsrCodEncryptedAndGetUsrData (void); void Usr_ChkUsrAndGetUsrData (void); void Usr_WarningWhenDegreeTypeDoesntAllowDirectLogin (void); -void Usr_ChangeMyRole (void); void Usr_ShowFormsRoleAndLogout (void); unsigned Usr_UpdateMyClicksWithoutPhoto (void);