| 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 |
< |
<refentry id="get_user_stats"> |
| 6 |
> |
<refentry id="sg_get_user_stats"> |
| 7 |
|
|
| 8 |
|
<refentryinfo> |
| 9 |
|
<date>$Date$</date> |
| 10 |
|
<releaseinfo>$Id$</releaseinfo> |
| 11 |
|
</refentryinfo> |
| 12 |
< |
|
| 12 |
> |
|
| 13 |
|
<refmeta> |
| 14 |
< |
<refentrytitle>get_user_stats</refentrytitle> |
| 14 |
> |
<refentrytitle>sg_get_user_stats</refentrytitle> |
| 15 |
|
<manvolnum>3</manvolnum> |
| 16 |
|
<refmiscinfo>i-scream</refmiscinfo> |
| 17 |
|
</refmeta> |
| 18 |
< |
|
| 18 |
> |
|
| 19 |
|
<refnamediv> |
| 20 |
< |
<refname>get_user_stats</refname> |
| 20 |
> |
<refname>sg_get_user_stats</refname> |
| 21 |
|
<refpurpose>get the current logged in users</refpurpose> |
| 22 |
|
</refnamediv> |
| 23 |
< |
|
| 23 |
> |
|
| 24 |
|
<refsynopsisdiv> |
| 25 |
|
<funcsynopsis> |
| 26 |
|
<funcsynopsisinfo>#include <statgrab.h></funcsynopsisinfo> |
| 27 |
|
<funcprototype> |
| 28 |
< |
<funcdef>user_stat_t *<function>get_user_stats</function></funcdef> |
| 28 |
> |
<funcdef>sg_user_stats *<function>sg_get_user_stats</function></funcdef> |
| 29 |
|
<void/> |
| 30 |
|
</funcprototype> |
| 31 |
|
</funcsynopsis> |
| 32 |
|
</refsynopsisdiv> |
| 33 |
< |
|
| 33 |
> |
|
| 34 |
|
<refsect1> |
| 35 |
|
<title>Description</title> |
| 36 |
|
<para> |
| 37 |
|
This call returns a pointer to a static buffer of |
| 38 |
< |
<structname>user_stat_t</structname>. |
| 38 |
> |
<structname>sg_user_stats</structname>. |
| 39 |
|
</para> |
| 40 |
|
</refsect1> |
| 41 |
< |
|
| 41 |
> |
|
| 42 |
|
<refsect1> |
| 43 |
|
<title>Return Values</title> |
| 44 |
|
|
| 45 |
|
<para> |
| 46 |
|
The structure returned is of type |
| 47 |
< |
<structname>user_stat_t</structname>. |
| 47 |
> |
<structname>sg_user_stats</structname>. |
| 48 |
|
</para> |
| 49 |
|
|
| 50 |
|
<programlisting> |
| 51 |
|
typedef struct{ |
| 52 |
|
char *name_list; |
| 53 |
|
int num_entries; |
| 54 |
< |
}user_stat_t; |
| 54 |
> |
}sg_user_stats; |
| 55 |
|
</programlisting> |
| 56 |
|
|
| 57 |
|
<variablelist> |
| 77 |
|
|
| 78 |
|
<refsect1> |
| 79 |
|
<title>See Also</title> |
| 80 |
< |
<para>Nothing yet</para> |
| 80 |
> |
|
| 81 |
> |
<simplelist type="inline"> |
| 82 |
> |
<member> |
| 83 |
> |
<citerefentry> |
| 84 |
> |
<refentrytitle>statgrab</refentrytitle> |
| 85 |
> |
<manvolnum>3</manvolnum> |
| 86 |
> |
</citerefentry> |
| 87 |
> |
</member> |
| 88 |
> |
</simplelist> |
| 89 |
|
</refsect1> |
| 90 |
< |
|
| 90 |
> |
|
| 91 |
|
<refsect1> |
| 92 |
|
<title>Website</title> |
| 93 |
< |
|
| 93 |
> |
|
| 94 |
|
<simplelist type="vert"> |
| 95 |
|
<member> |
| 96 |
< |
<ulink url="http://www.i-scream.org">http://www.i-scream.org</ulink> |
| 96 |
> |
<ulink url="http://www.i-scream.org/libstatgrab/"> |
| 97 |
> |
http://www.i-scream.org/libstatgrab/ |
| 98 |
> |
</ulink> |
| 99 |
|
</member> |
| 100 |
|
</simplelist> |
| 101 |
|
</refsect1> |