2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2016 Kern Sibbald
6 The original author of Bacula is Kern Sibbald, with contributions
7 from many others, a complete list can be found in the file AUTHORS.
9 You may use this file and others of this release according to the
10 license defined in the LICENSE file, which includes the Affero General
11 Public License, v3.0 ("AGPLv3") and some additional permissions and
12 terms pursuant to its AGPLv3 Section 7.
14 This notice must be preserved when any source code is
15 conveyed and/or propagated.
17 Bacula(R) is a registered trademark of Kern Sibbald.
21 * Bacula Json library routines
23 * Kern Sibbald, September MMXII
30 /* Function codes for handler packet */
38 * This structure defines the handler packet that is passed
39 * to the resource handler for display or store.
42 POOLMEM *edbuf; /* editing buffer */
43 POOLMEM *edbuf2; /* editing buffer */
44 RES_ITEM *ritem; /* RES_ITEM for call */
45 RES *res; /* Pointer to resource header */
46 HFUNC hfunc; /* Handler function to do */
47 bool json; /* set to display Json */
48 bool in_store_msg; /* set when doing store_msg */
49 bool exclude; /* Include/Exclude flage */
50 void (*sendit)(void *sock, const char *fmt, ...); /* print routine */
51 LEX *lc; /* Lex packet */
52 int index; /* Index item ITEM table */
53 int pass; /* Store pass number */
54 alist *list; /* alist to edit */
57 #endif /* __BJSON_H__ */