"Fossies" - the Fresh Open Source Software Archive

Member "gsa-9.0.0/gsad/src/gsad_credentials.h" (14 Oct 2019, 1483 Bytes) of package /linux/misc/openvas/gsa-9.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gsad_credentials.h" see the Fossies "Dox" file reference documentation.

    1 /* Copyright (C) 2018 Greenbone Networks GmbH
    2  *
    3  * SPDX-License-Identifier: GPL-2.0-or-later
    4  *
    5  * This program is free software; you can redistribute it and/or
    6  * modify it under the terms of the GNU General Public License
    7  * as published by the Free Software Foundation; either version 2
    8  * of the License, or (at your option) any later version.
    9  *
   10  * This program is distributed in the hope that it will be useful,
   11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  * GNU General Public License for more details.
   14  *
   15  * You should have received a copy of the GNU General Public License
   16  * along with this program; if not, write to the Free Software
   17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   18  */
   19 
   20 /**
   21  * @file gsad_credentials.h
   22  * @brief GSAD credentials handling
   23  */
   24 
   25 #ifndef _GSAD_CREDENTIALS_H
   26 #define _GSAD_CREDENTIALS_H
   27 
   28 #include "gsad_user.h"
   29 
   30 #include <glib.h>
   31 
   32 typedef struct credentials credentials_t;
   33 
   34 credentials_t *
   35 credentials_new (user_t *user, const gchar *language);
   36 
   37 void
   38 credentials_free (credentials_t *creds);
   39 
   40 user_t *
   41 credentials_get_user (credentials_t *creds);
   42 
   43 const gchar *
   44 credentials_get_current_page (credentials_t *creds);
   45 
   46 const gchar *
   47 credentials_get_language (credentials_t *creds);
   48 
   49 void
   50 credentials_start_cmd (credentials_t *creds);
   51 
   52 double
   53 credentials_get_cmd_duration (credentials_t *creds);
   54 
   55 #endif /* _GSAD_CREDENTIALS_H */