| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/gtk-doc/html/libgtop/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GlibTop</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Libgtop Reference Manual">
<link rel="up" href="libgtop-lib.html" title="Libgtop Library Reference">
<link rel="prev" href="libgtop-lib.html" title="Libgtop Library Reference">
<link rel="next" href="libgtop-Close.html" title="Close">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="libgtop-white-paper.html" title="White paper">
<link rel="chapter" href="libgtop-lib.html" title="Libgtop Library Reference">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgtop-lib.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgtop-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Libgtop Reference Manual</th>
<td><a accesskey="n" href="libgtop-Close.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgtop-GlibTop.synopsis" class="shortcut">Top</a>
|
<a href="#libgtop-GlibTop.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="GlibTop">
<a name="libgtop-GlibTop"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgtop-GlibTop.top_of_page"></a>GlibTop</span></h2>
<p>GlibTop — Server initilization</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1" title="Stability Level">
<a name="libgtop-GlibTop.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="libgtop-GlibTop.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <glibtop.h>
#define <a class="link" href="libgtop-GlibTop.html#GLIBTOP-MOUNTENTRY-LEN--CAPS" title="GLIBTOP_MOUNTENTRY_LEN">GLIBTOP_MOUNTENTRY_LEN</a>
#define <a class="link" href="libgtop-GlibTop.html#LIBGTOP-CHECK-VERSION--CAPS" title="LIBGTOP_CHECK_VERSION()">LIBGTOP_CHECK_VERSION</a> (major, minor, micro)
<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a>;
extern glibtop *<a class="link" href="libgtop-GlibTop.html#glibtop-global-server" title="glibtop_global_server">glibtop_global_server</a>;
<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> * <a class="link" href="libgtop-GlibTop.html#glibtop-init" title="glibtop_init ()">glibtop_init</a> (void);
<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> * <a class="link" href="libgtop-GlibTop.html#glibtop-init-r" title="glibtop_init_r ()">glibtop_init_r</a> (<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> **server_ptr,
unsigned long features,
unsigned flags);
<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> * <a class="link" href="libgtop-GlibTop.html#glibtop-init-s" title="glibtop_init_s ()">glibtop_init_s</a> (<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> **server_ptr,
unsigned long features,
unsigned flags);
extern const unsigned long <a class="link" href="libgtop-GlibTop.html#glibtop-server-features" title="glibtop_server_features">glibtop_server_features</a>;
</pre>
</div>
<div class="refsect1" title="Description">
<a name="libgtop-GlibTop.description"></a><h2>Description</h2>
<p>
You do not need to worry about the <a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop"><span class="type">glibtop</span></a> * server structure if
you don't need - the library exports a <a class="link" href="libgtop-GlibTop.html#glibtop-global-server" title="glibtop_global_server"><span class="type">glibtop_global_server</span></a>
which you can use everywhere a <a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop"><span class="type">glibtop</span></a> * is expected.
</p>
<p>
Most of the library and all of the sysdeps function also have an alias
(which is the function name without the <span style="color: red"><suffix>_l</suffix></span>,
<span style="color: red"><suffix>_s</suffix></span> or <span style="color: red"><suffix>_r</suffix></span> suffix) which don't
take a <a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop"><span class="type">glibtop</span></a> * as argument but uses the <a class="link" href="libgtop-GlibTop.html#glibtop-global-server" title="glibtop_global_server"><span class="type">glibtop_global_server</span></a>
instead.</p>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="libgtop-GlibTop.details"></a><h2>Details</h2>
<div class="refsect2" title="GLIBTOP_MOUNTENTRY_LEN">
<a name="GLIBTOP-MOUNTENTRY-LEN--CAPS"></a><h3>GLIBTOP_MOUNTENTRY_LEN</h3>
<pre class="programlisting">#define GLIBTOP_MOUNTENTRY_LEN 79
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="LIBGTOP_CHECK_VERSION()">
<a name="LIBGTOP-CHECK-VERSION--CAPS"></a><h3>LIBGTOP_CHECK_VERSION()</h3>
<pre class="programlisting">#define LIBGTOP_CHECK_VERSION(major, minor, micro)</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="glibtop">
<a name="glibtop"></a><h3>glibtop</h3>
<pre class="programlisting">typedef struct {
unsigned flags;
unsigned method; /* Server Method */
unsigned error_method; /* Error Method */
glibtop_machine machine; /* Machine dependent data */
int input [2]; /* Pipe client <- server */
int output [2]; /* Pipe client -> server */
int socket; /* Accepted connection of a socket */
int ncpu; /* Number of CPUs, zero if single-processor */
int real_ncpu; /* Real number of CPUs. Only ncpu are monitored */
unsigned long os_version_code; /* Version code of the operating system */
const char *name; /* Program name for error messages */
const char *server_command; /* Command used to invoke server */
const char *server_host; /* Host the server should run on */
const char *server_user; /* Name of the user on the target host */
const char *server_rsh; /* Command used to connect to the target host */
unsigned long features; /* Server is required for this features */
unsigned long server_port; /* Port on which daemon is listening */
glibtop_sysdeps sysdeps; /* Detailed feature list */
glibtop_sysdeps required; /* Required feature list */
pid_t pid; /* PID of the server */
} glibtop;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="glibtop_global_server">
<a name="glibtop-global-server"></a><h3>glibtop_global_server</h3>
<pre class="programlisting">extern glibtop *glibtop_global_server;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="glibtop_init ()">
<a name="glibtop-init"></a><h3>glibtop_init ()</h3>
<pre class="programlisting"><a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> * glibtop_init (void);</pre>
<p>
Server initialization.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop"><span class="type">glibtop</span></a> reference.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="glibtop_init_r ()">
<a name="glibtop-init-r"></a><h3>glibtop_init_r ()</h3>
<pre class="programlisting"><a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> * glibtop_init_r (<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> **server_ptr,
unsigned long features,
unsigned flags);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>server_ptr</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>features</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="glibtop_init_s ()">
<a name="glibtop-init-s"></a><h3>glibtop_init_s ()</h3>
<pre class="programlisting"><a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> * glibtop_init_s (<a class="link" href="libgtop-GlibTop.html#glibtop" title="glibtop">glibtop</a> **server_ptr,
unsigned long features,
unsigned flags);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>server_ptr</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>features</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="glibtop_server_features">
<a name="glibtop-server-features"></a><h3>glibtop_server_features</h3>
<pre class="programlisting">extern const unsigned long glibtop_server_features;
</pre>
<p>
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>