]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/bjson.h
crypto: convert EVP_PKEY access and remainings bits for OpenSSL 1.1
[bacula/bacula] / bacula / src / lib / bjson.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2016 Kern Sibbald
5
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.
8
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.
13
14    This notice must be preserved when any source code is 
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  *
21  *   Bacula Json library routines
22  *
23  *     Kern Sibbald, September MMXII
24  *
25  */
26
27 #ifndef __BJSON_H__
28 #define __BJSON_H__
29
30 /* Function codes for handler packet */
31 enum HFUNC {
32   HF_STORE,
33   HF_DISPLAY,
34   HF_DEFAULT
35 };
36
37 /*
38  * This structure defines the handler packet that is passed
39  *  to the resource handler for display or store.
40  */
41 struct HPKT {
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 */
55 };
56
57 #endif /* __BJSON_H__ */