gstreamer/validate/fault_injection/socket_interposer.h
Mathieu Duponchelle 4ce91b98f0 validate: Implement a fault injection library.
+ And implement a corrupt-socket-recv action
+ Only compile this on Linux, LD_PRELOAD won't work on Windows.

For now the registering of the action is done through
a call to socket_interposer_init, this will get better
when we refactor the action logic.

https://bugzilla.gnome.org/show_bug.cgi?id=743871
2015-02-03 15:30:54 +01:00

29 lines
1 KiB
C

/* GStreamer
*
* Copyright (C) 2014 YouView TV Ltd
* Author: Mariusz Buras <mariusz.buras@youview.com>
*
* socket_interposer.h : overrides for standard socket functions
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _SOCKET_INTERPOSER_H_
#define _SOCKET_INTERPOSER_H_
extern void socket_interposer_init(void);
#endif /* _SOCKET_INTERPOSER_H_ */