OpenVAS Libraries  4.0+rc3.SVN
misc/resource_request.h
00001 /* OpenVAS Libraries
00002  * $Id$
00003  * Description: Header for interface to external sources of resource
00004  *              information.
00005  *
00006  * Authors:
00007  * Felix Wolfsteller <felix.wolfsteller@intevation.de>
00008  *
00009  * Copyright:
00010  * Copyright (C) 2010 Greenbone Networks GmbH
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License version 2,
00014  * or, at your option, any later version as published by the Free
00015  * Software Foundation
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
00025  */
00026 
00027 #ifndef RESOURCE_REQUEST_H
00028 #define RESOURCE_REQUEST_H
00029 
00030 #include <glib.h>
00031 
00033 typedef enum
00034 {
00035   RESOURCE_TYPE_TARGET, 
00036   RESOURCE_TYPE_LAST    
00037 } resource_type_t;
00038 
00039 GSList* resource_request_sources (resource_type_t resource_type);
00040 
00041 GSList* resource_request_resource (const gchar* source,
00042                                    resource_type_t resource_type,
00043                                    const gchar* username,
00044                                    const gchar* password);
00045 
00046 #endif /* RESOURCE_REQUEST_H */