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 #ifndef WSSG_I_FAULT_TYPES_H
18 #define WSSG_I_FAULT_TYPES_H 1
19
20 #include "wssg_AddRefusedFaultType.h"
21
22 static
23 globus_result_t
24 wssg_l_AddRefusedFaultType_create(
25     const char **                       fault_name,
26     wssg_AddRefusedFaultType **         fault)
27 0 {
28 0     globus_result_t                     result;
29 0     time_t                              timestamp = time(NULL);
30 0     struct tm *                         tp;
31
32 0     result = wssg_AddRefusedFaultType_init(fault);
33
34 0     if (result != GLOBUS_SUCCESS)
35     {
36 0         return result;
37     }
38
39 0     tp = globus_libc_gmtime_r(&timestamp, &(*fault)->Timestamp);
40 0     globus_assert(tp != NULL);
41
42 0     *fault_name = "AddRefusedFault";
43
44 0     return result;
45 }
46 /* wssg_l_AddRefusedFaultType_create() */
47