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_string.h"
19
20 globus_result_t
21 xsd_string_init_cstr(
22 xsd_string ** ip,
23 char * str)
24 552 {
25 552 globus_result_t result = GLOBUS_SUCCESS;
26 GlobusFuncName(xsd_string_init_cstr);
27 552 GlobusSoapMessageDebugEnter();
28
29 552 result = xsd_string_init(ip);
30 552 if(result == GLOBUS_SUCCESS)
31 {
32 552 **ip = str;
33 }
34
35 552 GlobusSoapMessageDebugExit();
36 552 return result;
37 }
38
39 globus_result_t
40 xsd_string_init_contents_cstr(
41 xsd_string * instance,
42 char * str)
43 2470 {
44 2470 globus_result_t result = GLOBUS_SUCCESS;
45 GlobusFuncName(xsd_string_init_contents_cstr);
46 2470 GlobusSoapMessageDebugEnter();
47
48 2470 *instance = str;
49
50 2470 GlobusSoapMessageDebugExit();
51 2470 return result;
52 }
53
54 globus_result_t
55 xsd_string_copy_cstr(
56 xsd_string ** ip,
57 const char * str)
58 0 {
59 0 globus_result_t result = GLOBUS_SUCCESS;
60 GlobusFuncName(xsd_string_copy_cstr);
61 0 GlobusSoapMessageDebugEnter();
62
63 0 result = xsd_string_copy(ip, (const xsd_string *) &str);
64
65 0 GlobusSoapMessageDebugExit();
66 0 return result;
67 }
68
69 globus_result_t
70 xsd_string_copy_contents_cstr(
71 xsd_string * instance,
72 const char * str)
73 0 {
74 0 globus_result_t result = GLOBUS_SUCCESS;
75 GlobusFuncName(xsd_string_copy_cstr);
76 0 GlobusSoapMessageDebugEnter();
77
78 0 result = xsd_string_copy_contents(
79 instance, (const xsd_string *) &str);
80
81 0 GlobusSoapMessageDebugExit();
82 0 return result;