Annotation of embedaddon/strongswan/src/libimcv/imv/imv_session_manager.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2014-2015 Andreas Steffen
                      3:  * HSR Hochschule fuer Technik Rapperswil
                      4:  *
                      5:  * This program is free software; you can redistribute it and/or modify it
                      6:  * under the terms of the GNU General Public License as published by the
                      7:  * Free Software Foundation; either version 2 of the License, or (at your
                      8:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
                      9:  *
                     10:  * This program is distributed in the hope that it will be useful, but
                     11:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
                     12:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
                     13:  * for more details.
                     14:  */
                     15: 
                     16: /**
                     17:  *
                     18:  * @defgroup imv_session_manager_t imv_session_manager
                     19:  * @{ @ingroup libimcv_imv
                     20:  */
                     21: 
                     22: #ifndef IMV_SESSION_MANAGER_H_
                     23: #define IMV_SESSION_MANAGER_H_
                     24: 
                     25: #include "imv_session.h"
                     26: 
                     27: #include <tncifimv.h>
                     28: 
                     29: #include <library.h>
                     30: 
                     31: typedef struct imv_session_manager_t imv_session_manager_t;
                     32: 
                     33: /**
                     34:  * IMV session manager interface
                     35:  */
                     36: struct imv_session_manager_t {
                     37: 
                     38:        /**
                     39:         * Create or get a session associated with a TNCCS connection
                     40:         *
                     41:         * @param conn_id               TNCCS Connection ID
                     42:         * @param ar_identities List of Access Requestor identities
                     43:         * @return                              Session associated with TNCCS Connection
                     44:         */
                     45:         imv_session_t* (*add_session)(imv_session_manager_t *this,
                     46:                                                                   TNC_ConnectionID conn_id,
                     47:                                                                   linked_list_t *ar_identities);
                     48: 
                     49:        /**
                     50:         * Remove a session
                     51:         *
                     52:         * @param session               Session
                     53:         */
                     54:         void (*remove_session)(imv_session_manager_t *this, imv_session_t *session);
                     55: 
                     56: 
                     57:        /**
                     58:         * Destroys an imv_session_manager_t object
                     59:         */
                     60:        void (*destroy)(imv_session_manager_t *this);
                     61: };
                     62: 
                     63: /**
                     64:  * Create an imv_session_manager_t instance
                     65:  */
                     66: imv_session_manager_t* imv_session_manager_create();
                     67: 
                     68: #endif /** IMV_SESSION_MANAGER_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>