File: lbcd.h

package info (click to toggle)
lbcd 3.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,708 kB
  • sloc: ansic: 11,073; sh: 1,816; perl: 503; makefile: 165
file content (39 lines) | stat: -rw-r--r-- 1,056 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Spawn a copy of lbcd in the background for tests.
 *
 * Provides functions to start and stop the newly-built lbcd daemon, using
 * port 14330 instead of the default of 4330.
 *
 * Written by Russ Allbery <eagle@eyrie.org>
 * Copyright 2013
 *     The Board of Trustees of the Leland Stanford Junior University
 *
 * See LICENSE for licensing terms.
 */

#ifndef TAP_LBCD_H
#define TAP_LBCD_H 1

#include <config.h>
#include <tests/tap/macros.h>

/* Opaque struct with process tracking data. */
struct process;

BEGIN_DECLS

/*
 * Start lbcd for tests that use it.  Takes any additional arguments to
 * lbcd, terminated by NULL.  The lbcd binary will be found in the source
 * tree.
 *
 * process_stop (from <tests/tap/process.h> can be called explicitly to stop
 * lbcd and clean up, but it will also be stopped automatically at the end of
 * the test program, so tests that only start and stop the server once can
 * just let cleanup happen automatically.
 */
struct process *lbcd_start(const char *arg, ...);

END_DECLS

#endif /* !TAP_REMCTL_H */