#include <config.h>
#include "remoteserver.h"
#include "gnu_getopt.h"
#include <cstdlib>
#include <iostream>
#include <string>
Include dependency graph for xapian-progsrv.cc:
Go to the source code of this file.
Defines | |
#define | PROG_NAME "xapian-progsrv" |
#define | PROG_DESC "Piped server for use with Xapian's remote backend" |
#define | OPT_HELP 1 |
#define | OPT_VERSION 2 |
Functions | |
static void | show_usage () |
int | main (int argc, char **argv) |
Variables | |
static const char * | opts = "t:w" |
static struct option | long_opts [] |
Definition in file xapian-progsrv.cc.
#define PROG_NAME "xapian-progsrv" |
Definition at line 33 of file xapian-progsrv.cc.
#define PROG_DESC "Piped server for use with Xapian's remote backend" |
Definition at line 34 of file xapian-progsrv.cc.
#define OPT_HELP 1 |
Definition at line 36 of file xapian-progsrv.cc.
#define OPT_VERSION 2 |
Definition at line 37 of file xapian-progsrv.cc.
static void show_usage | ( | ) | [static] |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 57 of file xapian-progsrv.cc.
References atoi(), gnu_getopt_long(), long_opts, OPT_HELP, OPT_VERSION, optarg, optind, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, RemoteServer::run(), and show_usage().
const char* opts = "t:w" [static] |
Definition at line 39 of file xapian-progsrv.cc.
Referenced by main(), and test_driver::parse_command_line().
Initial value:
{ {"timeout", required_argument, 0, 't'}, {"writable", no_argument, 0, 'w'}, {"help", no_argument, 0, OPT_HELP}, {"version", no_argument, 0, OPT_VERSION}, {NULL, 0, 0, 0} }
Definition at line 40 of file xapian-progsrv.cc.
Referenced by main(), and test_driver::parse_command_line().