Vidalia 0.3.1
Macros
TorService.cpp File Reference
#include "TorService.h"
#include "tcglobal.h"
#include <QLibrary>

Go to the source code of this file.

Macros

#define UNKNOWN_EXIT_CODE   -999999
 
#define LOAD_SERVICE_FN(f)
 

Macro Definition Documentation

◆ LOAD_SERVICE_FN

#define LOAD_SERVICE_FN (   f)
Value:
do { \
void *fn; \
if (!((fn = QLibrary::resolve("advapi32", #f)))) { \
return false; \
} else { \
_service_fns.f = (f ## _fn) fn; \
} \
} while (0)

◆ UNKNOWN_EXIT_CODE

#define UNKNOWN_EXIT_CODE   -999999

Returned by TorService::exitCode() when we are unable to determine the actual exit code of the service (unless, of course, Tor returns -999999).

Definition at line 23 of file TorService.cpp.