ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/util.h
(Generate patch)

Comparing gvpe/src/util.h (file contents):
Revision 1.13 by pcg, Thu Mar 3 16:54:34 2005 UTC vs.
Revision 1.18 by pcg, Tue Apr 26 00:55:56 2005 UTC

16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details. 17 GNU General Public License for more details.
18 18
19 You should have received a copy of the GNU General Public License 19 You should have received a copy of the GNU General Public License
20 along with gvpe; if not, write to the Free Software 20 along with gvpe; if not, write to the Free Software
21 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22*/ 22*/
23 23
24#ifndef UTIL_H__ 24#ifndef UTIL_H__
25#define UTIL_H__ 25#define UTIL_H__
26 26
30 30
31#include "slog.h" 31#include "slog.h"
32#include "iom.h" 32#include "iom.h"
33 33
34/* 34/*
35 * check for an existing vped for this net, and write pid to pidfile 35 * check for an existing gvpe for this net, and write pid to pidfile
36 */ 36 */
37extern int write_pidfile (void); 37extern int write_pidfile (void);
38 38
39/* 39/*
40 * kill older vped 40 * kill older gvpe
41 */ 41 */
42extern int kill_other (int signal); 42extern int kill_other (int signal);
43 43
44/* 44/*
45 * Detach from current terminal, write pidfile, kill parent 45 * Detach from current terminal, write pidfile, kill parent
110}; 110};
111 111
112typedef callback0<const char *> run_script_cb; 112typedef callback0<const char *> run_script_cb;
113 113
114// run a shell script (or actually an external program). 114// run a shell script (or actually an external program).
115void run_script (const run_script_cb &cb, bool wait); 115bool run_script (const run_script_cb &cb, bool wait);
116 116
117#if ENABLE_HTTP_PROXY 117#if ENABLE_HTTP_PROXY
118u8 *base64_encode (const u8 *data, unsigned int len); 118u8 *base64_encode (const u8 *data, unsigned int len);
119#endif 119#endif
120 120

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines