Grid Community Toolkit  6.2.1629922860 (tag: v6.2.20210826)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_i_gfs_log.h
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 GLOBUS_I_GFS_LOG_H
18 #define GLOBUS_I_GFS_LOG_H
19 
20 void
21 globus_i_gfs_log_open(void);
22 
23 void
24 globus_i_gfs_log_close(void);
25 
26 typedef enum globus_gfs_log_event_type_e
27 {
28  GLOBUS_GFS_LOG_EVENT_START = 1,
29  GLOBUS_GFS_LOG_EVENT_END,
30  GLOBUS_GFS_LOG_EVENT_MESSAGE,
31  GLOBUS_GFS_LOG_EVENT_ERROR
32 } globus_gfs_log_event_type_t;
33 
34 
35 void
36 globus_i_gfs_log_tr(
37  char * msg,
38  char from,
39  char to);
40 
41 void
42 globus_gfs_log_exit_message(
43  const char * format,
44  ...);
45 
46 void
47 globus_gfs_log_exit_result(
48  const char * lead,
49  globus_result_t result);
50 
51 void
52 globus_gfs_log_event(
53  globus_gfs_log_type_t type,
54  globus_gfs_log_event_type_t event_type,
55  const char * event_name,
56  globus_result_t result,
57  const char * format,
58  ...);
59 
60 void
61 globus_i_gfs_log_transfer(
62  int stripe_count,
63  int stream_count,
64  struct timeval * start_gtd_time,
65  struct timeval * end_gtd_time,
66  char * dest_ip,
67  globus_size_t blksize,
68  globus_size_t tcp_bs,
69  const char * fname,
70  globus_off_t nbytes,
71  int code,
72  char * volume,
73  char * type,
74  char * username,
75  char * retrans,
76  char * taskid);
77 
78 char *
79 globus_i_gfs_log_create_transfer_event_msg(
80  int stripe_count,
81  int stream_count,
82  char * dest_ip,
83  globus_size_t blksize,
84  globus_size_t tcp_bs,
85  const char * fname,
86  globus_off_t nbytes,
87  char * type,
88  char * username,
89  char * retrans,
90  char * taskid);
91 
92 #endif
size_t globus_size_t
Standard size of memory objectThe globus_size_t is the size of a memory object. It is identical to si...
Definition: globus_types.h:48
uint32_t globus_result_t
Definition: globus_types.h:99