2006-03-16 15:25:41 +00:00
|
|
|
/*
|
2008-03-26 10:10:40 +00:00
|
|
|
* Copyright (C) 2008 Martin Willi
|
2018-05-23 14:04:50 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
/**
|
2008-03-26 10:10:40 +00:00
|
|
|
* @defgroup stroke_socket stroke_socket
|
2008-03-13 14:14:44 +00:00
|
|
|
* @{ @ingroup stroke
|
|
|
|
*/
|
2006-03-16 15:25:41 +00:00
|
|
|
|
2008-03-26 10:10:40 +00:00
|
|
|
#ifndef STROKE_SOCKET_H_
|
|
|
|
#define STROKE_SOCKET_H_
|
2006-03-16 15:25:41 +00:00
|
|
|
|
2008-03-26 10:10:40 +00:00
|
|
|
typedef struct stroke_socket_t stroke_socket_t;
|
2007-04-10 06:01:03 +00:00
|
|
|
|
2006-03-16 15:25:41 +00:00
|
|
|
/**
|
2008-03-26 10:10:40 +00:00
|
|
|
* Stroke socket, opens UNIX communication socket, reads and dispatches.
|
2006-03-16 15:25:41 +00:00
|
|
|
*/
|
2008-03-26 10:10:40 +00:00
|
|
|
struct stroke_socket_t {
|
2009-09-04 11:46:09 +00:00
|
|
|
|
2006-03-16 15:25:41 +00:00
|
|
|
/**
|
2009-09-04 12:50:23 +00:00
|
|
|
* Destroy a stroke_socket instance.
|
|
|
|
*/
|
|
|
|
void (*destroy)(stroke_socket_t *this);
|
2006-03-16 15:25:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2008-03-26 10:10:40 +00:00
|
|
|
* Create a stroke_socket instance.
|
2006-03-16 15:25:41 +00:00
|
|
|
*/
|
2008-03-26 10:10:40 +00:00
|
|
|
stroke_socket_t *stroke_socket_create();
|
2007-04-27 14:25:08 +00:00
|
|
|
|
2009-03-24 17:43:01 +00:00
|
|
|
#endif /** STROKE_SOCKET_H_ @}*/
|