strongswan/src/libcharon/plugins/stroke/stroke_socket.h

43 lines
1.1 KiB
C
Raw Normal View History

2006-03-16 15:25:41 +00:00
/*
* Copyright (C) 2008 Martin Willi
* HSR Hochschule fuer Technik Rapperswil
2006-03-16 15:25:41 +00:00
*
* 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. See <http://www.fsf.org/copyleft/gpl.txt>.
*
* 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.
*/
/**
* @defgroup stroke_socket stroke_socket
* @{ @ingroup stroke
*/
2006-03-16 15:25:41 +00:00
#ifndef STROKE_SOCKET_H_
#define STROKE_SOCKET_H_
2006-03-16 15:25:41 +00:00
typedef struct stroke_socket_t stroke_socket_t;
2006-03-16 15:25:41 +00:00
/**
* Stroke socket, opens UNIX communication socket, reads and dispatches.
2006-03-16 15:25:41 +00:00
*/
struct stroke_socket_t {
2006-03-16 15:25:41 +00:00
/**
* Destroy a stroke_socket instance.
*/
void (*destroy)(stroke_socket_t *this);
2006-03-16 15:25:41 +00:00
};
/**
* Create a stroke_socket instance.
2006-03-16 15:25:41 +00:00
*/
stroke_socket_t *stroke_socket_create();
#endif /** STROKE_SOCKET_H_ @}*/