Grid Community Toolkit  6.2.1541705016
myproxy_usage.h
1 /*
2  * Copyright 2009 The Board of Trustees of the University
3  * of Illinois. See the LICENSE file for detailed license information.
4  *
5  * Portions, specifically myproxy_usage_stats_init(), myproxy_usage_stats_close()
6  * were based on those from: gridftp/server/source/globus_i_gfs_log.h
7  * Copyright 1999-2006 University of Chicago
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #ifndef __MYPROXY_USAGE_H
23 #define __MYPROXY_USAGE_H
24 
25 #ifdef HAVE_GLOBUS_USAGE
26 
27 #include "globus_usage.h"
28 
29 struct myproxy_socket_attrs_s;
30 struct myproxy_server_context_s;
31 
33 myproxy_usage_stats_init(struct myproxy_server_context_s *context);
34 
35 void
36 myproxy_usage_stats_close(struct myproxy_server_context_s *context);
37 
38 #endif /* GLOBUS_USAGE */
39 
40 void
41 myproxy_send_usage_metrics(struct myproxy_socket_attrs_s *attrs,
42  myproxy_server_peer_t *client,
43  struct myproxy_server_context_s *context,
44  myproxy_request_t *request,
45  myproxy_creds_t *creds,
46  myproxy_response_t *response,
47  int success_flag);
48 
49 #endif /* __MYPROXY_USAGE_H */
uint32_t globus_result_t
Definition: globus_types.h:99