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.28 by pcg, Sun Aug 10 15:04:55 2008 UTC vs.
Revision 1.29 by root, Tue Mar 8 17:33:31 2011 UTC

1/* 1/*
2 util.h -- process management and other utility functions 2 util.h -- process management and other utility functions
3 Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl> 3 Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl>
4 2000-2002 Guus Sliepen <guus@sliepen.eu.org> 4 2000-2002 Guus Sliepen <guus@sliepen.eu.org>
5 2003-2008 Marc Lehmann <gvpe@schmorp.de> 5 2003-2011 Marc Lehmann <gvpe@schmorp.de>
6 6
7 This file is part of GVPE. 7 This file is part of GVPE.
8 8
9 GVPE is free software; you can redistribute it and/or modify it 9 GVPE is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by the 10 under the terms of the GNU General Public License as published by the
119 } 119 }
120 } 120 }
121 } 121 }
122}; 122};
123 123
124typedef callback<const char * ()> run_script_cb; 124typedef callback<const char *()> run_script_cb;
125 125
126// run a shell script (or actually an external program). 126// run a shell script (or actually an external program).
127pid_t run_script (const run_script_cb &cb, bool wait); 127pid_t run_script (const run_script_cb &cb, bool wait);
128 128
129#if ENABLE_HTTP_PROXY 129#if ENABLE_HTTP_PROXY
150 return RSA_private_decrypt (sizeof encr, 150 return RSA_private_decrypt (sizeof encr,
151 (unsigned char *)&encr, (unsigned char *)&chg, 151 (unsigned char *)&encr, (unsigned char *)&chg,
152 key, RSA_PKCS1_OAEP_PADDING) > 0; 152 key, RSA_PKCS1_OAEP_PADDING) > 0;
153} 153}
154 154
155/*****************************************************************************/
156
157void async (callback<void ()> work_cb, callback<void ()> done_cb);
158
155#endif 159#endif
156 160

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines