]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/plugins/stroke/stroke_socket.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / stroke / stroke_socket.h
CommitLineData
e8d25806 1/*
0b14fdb9 2 * Copyright (C) 2008 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
e8d25806
MW
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
552cc11b 17/**
0b14fdb9 18 * @defgroup stroke_socket stroke_socket
552cc11b
MW
19 * @{ @ingroup stroke
20 */
e8d25806 21
0b14fdb9
MW
22#ifndef STROKE_SOCKET_H_
23#define STROKE_SOCKET_H_
e8d25806 24
0b14fdb9 25typedef struct stroke_socket_t stroke_socket_t;
e0fe7651 26
e8d25806 27/**
0b14fdb9 28 * Stroke socket, opens UNIX communication socket, reads and dispatches.
e8d25806 29 */
0b14fdb9 30struct stroke_socket_t {
7daf5226 31
e8d25806 32 /**
323f9f99
MW
33 * Destroy a stroke_socket instance.
34 */
35 void (*destroy)(stroke_socket_t *this);
e8d25806
MW
36};
37
e8d25806 38/**
0b14fdb9 39 * Create a stroke_socket instance.
e8d25806 40 */
0b14fdb9 41stroke_socket_t *stroke_socket_create();
a84fb01b 42
1490ff4d 43#endif /** STROKE_SOCKET_H_ @}*/