/* OpenVAS Manager
 * $Id$
 * Description: Module for OpenVAS Manager: Scanner Connection API.
 *
 * Authors:
 * Hani Benhabiles <hani.benhabiles@greenbone.net>
 *
 * Copyright:
 * Copyright (C) 2014 Greenbone Networks GmbH
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef OPENVAS_MANAGER_SCANNER_H
#define OPENVAS_MANAGER_SCANNER_H

#include <gnutls/gnutls.h>

int
openvas_scanner_read ();

int
openvas_scanner_write (int);

int
openvas_scanner_wait ();

int
openvas_scanner_close ();

void
openvas_scanner_fork ();

int
openvas_scanner_connect ();

void
openvas_scanner_free ();

int
openvas_scanner_fd_isset (fd_set *);

void
openvas_scanner_fd_set (fd_set *);

int
openvas_scanner_peek ();

int
openvas_scanner_get_nfds (int);

int
openvas_scanner_session_peek ();

int
openvas_scanner_full ();

int
openvas_scanner_realloc ();

int
openvas_scanner_connected ();

int
openvas_scanner_init (int);

int
openvas_scanner_is_loading ();

int
openvas_scanner_set_address (const char *, int);

int
openvas_scanner_set_unix (const char *);

void
openvas_scanner_set_certs (const char *, const char *, const char *);

#endif /* not OPENVAS_MANAGER_SCANNER_H */
