Globus Toolkit  6.0.1535473965
globus_usage.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_USAGE_H_
18 #define _GLOBUS_USAGE_H_
19 
20 #include "globus_common.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #define GLOBUS_USAGE_MODULE &globus_i_usage_stats_module
27 extern globus_module_descriptor_t globus_i_usage_stats_module;
28 
29 typedef struct globus_usage_stats_handle_s * globus_usage_stats_handle_t;
30 
31 enum
32 {
33  GLOBUS_USAGE_STATS_ERROR_TYPE_OOM,
34  GLOBUS_USAGE_STATS_ERROR_TYPE_TOO_BIG,
35  GLOBUS_USAGE_STATS_ERROR_TYPE_UNKNOWN_HOSTNAME
36 };
37 
39 globus_usage_stats_handle_init(
40  globus_usage_stats_handle_t * handle,
41  uint16_t code,
42  uint16_t version,
43  const char * targets);
44 
45 void
46 globus_usage_stats_handle_destroy(
47  globus_usage_stats_handle_t handle);
48 
50 globus_usage_stats_send(
51  globus_usage_stats_handle_t handle,
52  int count,
53  ...);
54 
56 globus_usage_stats_vsend(
57  globus_usage_stats_handle_t handle,
58  int count,
59  va_list ap);
60 
62 globus_usage_stats_send_array(
63  globus_usage_stats_handle_t handle,
64  int count,
65  char ** key_array,
66  char ** value_array);
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif
Headers common to all of Globus.
uint32_t globus_result_t
Definition: globus_types.h:99
Module Descriptor.
Definition: globus_module.h:69