ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/statgrab_deprecated.c
Revision: 1.2
Committed: Tue Apr 6 21:08:03 2004 UTC (20 years, 1 month ago) by tdb
Content type: text/plain
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_17, LIBSTATGRAB_0_16, LIBSTATGRAB_0_15, LIBSTATGRAB_0_14, LIBSTATGRAB_0_13, LIBSTATGRAB_0_12, LIBSTATGRAB_0_11_1, LIBSTATGRAB_0_11, LIBSTATGRAB_0_10_3, LIBSTATGRAB_0_10_2, LIBSTATGRAB_0_10_1, LIBSTATGRAB_0_10, HEAD
Changes since 1.1: +2 -2 lines
Log Message:
Fix a couple of includes.

File Contents

# User Rev Content
1 tdb 1.1 /*
2     * i-scream libstatgrab
3     * http://www.i-scream.org
4     * Copyright (C) 2000-2004 i-scream
5     *
6     * This library is free software; you can redistribute it and/or
7     * modify it under the terms of the GNU Lesser General Public
8     * License as published by the Free Software Foundation; either
9     * version 2.1 of the License, or (at your option) any later version.
10     *
11     * This library is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14     * Lesser General Public License for more details.
15     *
16     * You should have received a copy of the GNU Lesser General Public
17     * License along with this library; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19     * 02111-1307 USA
20     *
21 tdb 1.2 * $Id: statgrab_deprecated.c,v 1.1 2004/04/06 16:37:34 tdb Exp $
22 tdb 1.1 */
23    
24     #define SG_ENABLE_DEPRECATED
25 tdb 1.2 #include "statgrab.h"
26 tdb 1.1
27     int statgrab_init() {
28     return sg_init();
29     }
30    
31     int statgrab_drop_privileges() {
32     return sg_drop_privileges();
33     }
34    
35     general_stat_t *get_general_stats() {
36     return sg_get_host_info();
37     }
38    
39     cpu_states_t *get_cpu_totals() {
40     return sg_get_cpu_stats();
41     }
42    
43     cpu_states_t *get_cpu_diff() {
44     return sg_get_cpu_stats_diff();
45     }
46    
47     cpu_percent_t *cpu_percent_usage() {
48     return sg_get_cpu_percents();
49     }
50    
51     mem_stat_t *get_memory_stats() {
52     return sg_get_mem_stats();
53     }
54    
55     load_stat_t *get_load_stats() {
56     return sg_get_load_stats();
57     }
58    
59     user_stat_t *get_user_stats() {
60     return sg_get_user_stats();
61     }
62    
63     swap_stat_t *get_swap_stats() {
64     return sg_get_swap_stats();
65     }
66    
67     disk_stat_t *get_disk_stats(int *entries) {
68     return sg_get_fs_stats(entries);
69     }
70    
71     diskio_stat_t *get_diskio_stats(int *entries) {
72     return sg_get_disk_io_stats(entries);
73     }
74    
75     diskio_stat_t *get_diskio_stats_diff(int *entries) {
76     return sg_get_disk_io_stats_diff(entries);
77     }
78    
79     network_stat_t *get_network_stats(int *entries) {
80     return sg_get_network_io_stats(entries);
81     }
82    
83     network_stat_t *get_network_stats_diff(int *entries) {
84     return sg_get_network_io_stats_diff(entries);
85     }
86    
87     network_iface_stat_t *get_network_iface_stats(int *entries) {
88     return sg_get_network_iface_stats(entries);
89     }
90    
91     page_stat_t *get_page_stats() {
92     return sg_get_page_stats();
93     }
94    
95     page_stat_t *get_page_stats_diff() {
96     return sg_get_page_stats_diff();
97     }
98    
99     process_stat_t *get_process_stats() {
100     return sg_get_process_count();
101     }
102