| 1 | /* | |
| 2 | * Copyright 1999-2006 University of Chicago | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | ||
| 17 | #include "globus_soap_message.h" | |
| 18 | #include "xsd_language.h" | |
| 19 | ||
| 20 | globus_result_t | |
| 21 | xsd_language_init_cstr( | |
| 22 | xsd_language ** ip, | |
| 23 | char * str) | |
| 24 | 0 | { |
| 25 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 26 | GlobusFuncName(xsd_language_init_cstr); | |
| 27 | 0 | GlobusSoapMessageDebugEnter(); |
| 28 | ||
| 29 | 0 | result = xsd_language_init(ip); |
| 30 | 0 | if(result == GLOBUS_SUCCESS) |
| 31 | { | |
| 32 | 0 | **ip = str; |
| 33 | } | |
| 34 | ||
| 35 | 0 | GlobusSoapMessageDebugExit(); |
| 36 | 0 | return result; |
| 37 | } | |
| 38 | ||
| 39 | globus_result_t | |
| 40 | xsd_language_init_contents_cstr( | |
| 41 | xsd_language * instance, | |
| 42 | char * str) | |
| 43 | 0 | { |
| 44 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 45 | GlobusFuncName(xsd_language_init_contents_cstr); | |
| 46 | 0 | GlobusSoapMessageDebugEnter(); |
| 47 | ||
| 48 | 0 | *instance = str; |
| 49 | ||
| 50 | 0 | GlobusSoapMessageDebugExit(); |
| 51 | 0 | return result; |
| 52 | } | |
| 53 | ||
| 54 | globus_result_t | |
| 55 | xsd_language_copy_cstr( | |
| 56 | xsd_language ** ip, | |
| 57 | const char * str) | |
| 58 | 0 | { |
| 59 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 60 | GlobusFuncName(xsd_language_copy_cstr); | |
| 61 | 0 | GlobusSoapMessageDebugEnter(); |
| 62 | ||
| 63 | 0 | result = xsd_language_copy(ip, (const xsd_language *) &str); |
| 64 | ||
| 65 | 0 | GlobusSoapMessageDebugExit(); |
| 66 | 0 | return result; |
| 67 | } | |
| 68 | ||
| 69 | globus_result_t | |
| 70 | xsd_language_copy_contents_cstr( | |
| 71 | xsd_language * instance, | |
| 72 | const char * str) | |
| 73 | 0 | { |
| 74 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 75 | GlobusFuncName(xsd_language_copy_cstr); | |
| 76 | 0 | GlobusSoapMessageDebugEnter(); |
| 77 | ||
| 78 | 0 | result = xsd_language_copy_contents( |
| 79 | instance, (const xsd_language *) &str); | |
| 80 | ||
| 81 | 0 | GlobusSoapMessageDebugExit(); |
| 82 | 0 | return result; |