OpenVAS Libraries  8.0.3
arglists.h
Go to the documentation of this file.
1 /* OpenVAS
2  * $Id$
3  * Description: Header file for module arglists.
4  *
5  * Authors:
6  * Renaud Deraison <deraison@nessus.org> (Original pre-fork development)
7  *
8  * Copyright:
9  * Based on work Copyright (C) 1998 - 2007 Tenable Network Security, Inc.
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #ifndef OPENVAS_ARGLISTS_H
27 #define OPENVAS_ARGLISTS_H
28 
29 struct arglist
30 {
31  char *name;
32  void *value;
33  struct arglist *next;
34  int type;
35  int hash;
36 };
37 
38 #define ARG_STRING 1
39 #define ARG_PTR 2
40 #define ARG_INT 3
41 #define ARG_ARGLIST 4
42 
43 void arg_add_value (struct arglist *, const char *, int, void *);
44 int arg_set_value (struct arglist *, const char *, void *);
45 void *arg_get_value (struct arglist *, const char *);
46 int arg_get_value_int (struct arglist *, const char *);
47 int arg_get_type (struct arglist *, const char *);
48 void arg_dump (struct arglist *, int);
49 void arg_free (struct arglist *);
50 void arg_free_all (struct arglist *);
51 void arg_del_value (struct arglist *, const char *name);
52 
53 #endif /* OPENVAS_ARGLISTS_H */
void * arg_get_value(struct arglist *, const char *)
Definition: arglists.c:235
int arg_get_type(struct arglist *, const char *)
Definition: arglists.c:251
void arg_del_value(struct arglist *, const char *name)
Definition: arglists.c:341
void arg_dump(struct arglist *, int)
Definition: arglists.c:263
void arg_add_value(struct arglist *, const char *, int, void *)
Definition: arglists.c:170
int type
Definition: arglists.h:34
void * value
Definition: arglists.h:32
struct arglist * next
Definition: arglists.h:33
const char * name
Definition: nasl_init.c:511
Definition: arglists.h:29
int arg_get_value_int(struct arglist *, const char *)
Definition: arglists.c:229
int hash
Definition: arglists.h:35
int arg_set_value(struct arglist *, const char *, void *)
Definition: arglists.c:208
char * name
Definition: arglists.h:31
void arg_free(struct arglist *)
Definition: arglists.c:305
void arg_free_all(struct arglist *)
Definition: arglists.c:319