ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/docs/sg_get_user_stats.xml
Revision: 1.5
Committed: Sun May 2 17:21:35 2004 UTC (20 years ago) by tdb
Content type: text/xml
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_11_1, LIBSTATGRAB_0_11, LIBSTATGRAB_0_10_3, LIBSTATGRAB_0_10_2, LIBSTATGRAB_0_10_1, LIBSTATGRAB_0_10
Changes since 1.4: +16 -16 lines
Log Message:
First pass as updating contents of documentation.

File Contents

# User Rev Content
1 tdb 1.1 <?xml version="1.0"?>
2    
3     <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4     "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5    
6 tdb 1.5 <refentry id="sg_get_user_stats">
7 tdb 1.1
8     <refentryinfo>
9 tdb 1.5 <date>$Date: 2004/05/02 09:35:15 $</date>
10     <releaseinfo>$Id: sg_get_user_stats.xml,v 1.4 2004/05/02 09:35:15 tdb Exp $</releaseinfo>
11 tdb 1.1 </refentryinfo>
12 tdb 1.5
13 tdb 1.1 <refmeta>
14 tdb 1.5 <refentrytitle>sg_get_user_stats</refentrytitle>
15 tdb 1.1 <manvolnum>3</manvolnum>
16     <refmiscinfo>i-scream</refmiscinfo>
17     </refmeta>
18 tdb 1.5
19 tdb 1.1 <refnamediv>
20 tdb 1.5 <refname>sg_get_user_stats</refname>
21 tdb 1.1 <refpurpose>get the current logged in users</refpurpose>
22     </refnamediv>
23 tdb 1.5
24 tdb 1.1 <refsynopsisdiv>
25     <funcsynopsis>
26     <funcsynopsisinfo>#include &lt;statgrab.h&gt;</funcsynopsisinfo>
27     <funcprototype>
28 tdb 1.5 <funcdef>sg_user_stats *<function>sg_get_user_stats</function></funcdef>
29 tdb 1.1 <void/>
30     </funcprototype>
31     </funcsynopsis>
32     </refsynopsisdiv>
33 tdb 1.5
34 tdb 1.1 <refsect1>
35     <title>Description</title>
36     <para>
37     This call returns a pointer to a static buffer of
38 tdb 1.5 <structname>sg_user_stats</structname>.
39 tdb 1.1 </para>
40     </refsect1>
41 tdb 1.5
42 tdb 1.1 <refsect1>
43     <title>Return Values</title>
44    
45     <para>
46     The structure returned is of type
47 tdb 1.5 <structname>sg_user_stats</structname>.
48 tdb 1.1 </para>
49    
50     <programlisting>
51     typedef struct{
52     char *name_list;
53     int num_entries;
54 tdb 1.5 }sg_user_stats;
55 tdb 1.1 </programlisting>
56    
57     <variablelist>
58     <varlistentry>
59     <term><structfield>name_list</structfield></term>
60     <listitem>
61     <para>
62     A pointer to a space seperated list of the currently
63     logged in users.
64     </para>
65     </listitem>
66     </varlistentry>
67     <varlistentry>
68     <term><structfield>num_entries</structfield></term>
69     <listitem>
70     <para>
71     The number of users currently logged in.
72     </para>
73     </listitem>
74     </varlistentry>
75     </variablelist>
76     </refsect1>
77    
78     <refsect1>
79     <title>See Also</title>
80 tdb 1.2
81     <simplelist type="inline">
82     <member>
83     <citerefentry>
84     <refentrytitle>statgrab</refentrytitle>
85     <manvolnum>3</manvolnum>
86     </citerefentry>
87     </member>
88     </simplelist>
89 tdb 1.1 </refsect1>
90 tdb 1.5
91 tdb 1.1 <refsect1>
92     <title>Website</title>
93 tdb 1.5
94 tdb 1.1 <simplelist type="vert">
95     <member>
96 tdb 1.3 <ulink url="http://www.i-scream.org/libstatgrab/">
97     http://www.i-scream.org/libstatgrab/
98     </ulink>
99 tdb 1.1 </member>
100     </simplelist>
101     </refsect1>
102    
103     </refentry>