Isolate legacy code
Only the legacy file read function needs to be public. The H file is not needed anymore.
This commit is contained in:
parent
1396549299
commit
7c47c57383
|
@ -2,31 +2,27 @@ MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
bin_PROGRAMS = exactness exactness_inspect exactness_play exactness_record exactness_inject
|
bin_PROGRAMS = exactness exactness_inspect exactness_play exactness_record exactness_inject
|
||||||
|
|
||||||
exactness_SOURCES = exactness.c ../lib/tsuite_file_data.c
|
exactness_SOURCES = exactness.c
|
||||||
|
|
||||||
exactness_inspect_SOURCES = inspect.c ../lib/tsuite_file_data.c ../lib/file.c
|
exactness_inspect_SOURCES = inspect.c
|
||||||
|
|
||||||
exactness_play_SOURCES = player.c ../lib/tsuite_file_data.c ../lib/file.c
|
exactness_play_SOURCES = player.c
|
||||||
|
|
||||||
exactness_record_SOURCES = recorder.c ../lib/tsuite_file_data.c ../lib/file.c
|
exactness_record_SOURCES = recorder.c
|
||||||
|
|
||||||
exactness_inject_SOURCES = injector.c ../lib/tsuite_file_data.c ../lib/file.c
|
exactness_inject_SOURCES = injector.c
|
||||||
|
|
||||||
exactness_LDADD = @EFL_LIBS@
|
exactness_LDADD = @EFL_LIBS@ $(top_srcdir)/src/lib/.libs/libexactness.la
|
||||||
|
|
||||||
exactness_inspect_LDADD = @EFL_LIBS@
|
exactness_inspect_LDADD = @EFL_LIBS@ $(top_srcdir)/src/lib/.libs/libexactness.a
|
||||||
|
|
||||||
exactness_play_LDADD = @EFL_LIBS@
|
exactness_play_LDADD = @EFL_LIBS@ $(top_srcdir)/src/lib/.libs/libexactness.a
|
||||||
|
|
||||||
exactness_record_LDADD = @EFL_LIBS@
|
exactness_record_LDADD = @EFL_LIBS@ $(top_srcdir)/src/lib/.libs/libexactness.a
|
||||||
|
|
||||||
exactness_inject_LDADD = @EFL_LIBS@
|
exactness_inject_LDADD = @EFL_LIBS@ $(top_srcdir)/src/lib/.libs/libexactness.a
|
||||||
|
|
||||||
exactness_CFLAGS = \
|
exactness_CFLAGS = @EFL_CFLAGS@ -I$(top_srcdir)/src/lib
|
||||||
@EFL_CFLAGS@ \
|
|
||||||
-I$(top_srcdir)/src/lib \
|
|
||||||
-DPACKAGE_LIBDIR=\"$(libdir)\" \
|
|
||||||
-DPACKAGE_DATADIR=\"$(datadir)\"
|
|
||||||
|
|
||||||
exactness_inspect_CFLAGS = @EFL_CFLAGS@ -I$(top_srcdir)/src/lib
|
exactness_inspect_CFLAGS = @EFL_CFLAGS@ -I$(top_srcdir)/src/lib
|
||||||
|
|
||||||
|
|
|
@ -215,6 +215,15 @@ EAPI Exactness_Unit *exactness_unit_file_read(const char *filename);
|
||||||
*/
|
*/
|
||||||
EAPI Eina_Bool exactness_unit_file_write(Exactness_Unit *unit, const char *filename);
|
EAPI Eina_Bool exactness_unit_file_write(Exactness_Unit *unit, const char *filename);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Read a legacy file and convert it to an unit
|
||||||
|
*
|
||||||
|
* @param filename Name of the legacy file
|
||||||
|
*
|
||||||
|
* @return the unit
|
||||||
|
*/
|
||||||
|
EAPI Exactness_Unit *legacy_rec_file_read(const char *filename);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,13 +11,12 @@ AM_CPPFLAGS = \
|
||||||
@EFL_CFLAGS@
|
@EFL_CFLAGS@
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
tsuite_file_data.h
|
|
||||||
exactness_private.h
|
exactness_private.h
|
||||||
|
|
||||||
pkgdir = $(libdir)
|
pkgdir = $(libdir)
|
||||||
pkg_LTLIBRARIES = libexactness.la
|
pkg_LTLIBRARIES = libexactness.la
|
||||||
|
|
||||||
libexactness_la_SOURCES = unit.c
|
libexactness_la_SOURCES = unit.c legacy_file.c
|
||||||
libexactness_la_LDFLAGS = -fPIC -rdynamic
|
libexactness_la_LDFLAGS = -fPIC -rdynamic
|
||||||
libexactness_la_DEPENDENCIES = $(top_builddir)/config.h
|
libexactness_la_DEPENDENCIES = $(top_builddir)/config.h
|
||||||
libexactness_la_LIBADD = @EFL_LIBS@
|
libexactness_la_LIBADD = @EFL_LIBS@
|
||||||
|
|
|
@ -6,7 +6,5 @@
|
||||||
/* private header */
|
/* private header */
|
||||||
const char *_exactness_action_type_to_string_get(Exactness_Action_Type type);
|
const char *_exactness_action_type_to_string_get(Exactness_Action_Type type);
|
||||||
|
|
||||||
Exactness_Unit *legacy_rec_file_read(const char *filename);
|
|
||||||
|
|
||||||
#define SHOT_DELIMITER '+'
|
#define SHOT_DELIMITER '+'
|
||||||
#endif
|
#endif
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,259 +0,0 @@
|
||||||
#ifndef _TSUITE_EVAS_HOOK_H
|
|
||||||
#define _TSUITE_EVAS_HOOK_H
|
|
||||||
|
|
||||||
#include <Evas.h>
|
|
||||||
#include <Eet.h>
|
|
||||||
#include <Exactness.h>
|
|
||||||
|
|
||||||
#define CACHE_FILE_ENTRY "cache"
|
|
||||||
|
|
||||||
/* Macro declaring a function argument to be unused */
|
|
||||||
#define __UNUSED__ __attribute__((unused))
|
|
||||||
|
|
||||||
#ifdef EAPI
|
|
||||||
# undef EAPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
# ifdef EXACTNESS_BUILD
|
|
||||||
# ifdef DLL_EXPORT
|
|
||||||
# define EAPI __declspec(dllexport)
|
|
||||||
# else
|
|
||||||
# define EAPI
|
|
||||||
# endif /* ! DLL_EXPORT */
|
|
||||||
# else
|
|
||||||
# define EAPI __declspec(dllimport)
|
|
||||||
# endif /* ! EXACTNESS_BUILD */
|
|
||||||
#else
|
|
||||||
# ifdef __GNUC__
|
|
||||||
# if __GNUC__ >= 4
|
|
||||||
# define EAPI __attribute__ ((visibility("default")))
|
|
||||||
# else
|
|
||||||
# define EAPI
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
# define EAPI
|
|
||||||
# endif
|
|
||||||
#endif /* ! _WIN32 */
|
|
||||||
|
|
||||||
enum _Tsuite_Event_Type
|
|
||||||
{ /* Add any supported events here */
|
|
||||||
TSUITE_EVENT_NOT_SUPPORTED = 0,
|
|
||||||
TSUITE_EVENT_MOUSE_IN,
|
|
||||||
TSUITE_EVENT_MOUSE_OUT,
|
|
||||||
TSUITE_EVENT_MOUSE_DOWN,
|
|
||||||
TSUITE_EVENT_MOUSE_UP,
|
|
||||||
TSUITE_EVENT_MOUSE_MOVE,
|
|
||||||
TSUITE_EVENT_MOUSE_WHEEL,
|
|
||||||
TSUITE_EVENT_MULTI_DOWN,
|
|
||||||
TSUITE_EVENT_MULTI_UP,
|
|
||||||
TSUITE_EVENT_MULTI_MOVE,
|
|
||||||
TSUITE_EVENT_KEY_DOWN,
|
|
||||||
TSUITE_EVENT_KEY_UP,
|
|
||||||
TSUITE_EVENT_KEY_DOWN_WITH_KEYCODE,
|
|
||||||
TSUITE_EVENT_KEY_UP_WITH_KEYCODE,
|
|
||||||
TSUITE_EVENT_TAKE_SHOT
|
|
||||||
};
|
|
||||||
typedef enum _Tsuite_Event_Type Tsuite_Event_Type;
|
|
||||||
|
|
||||||
struct _eet_event_type_mapping
|
|
||||||
{
|
|
||||||
Tsuite_Event_Type t;
|
|
||||||
const char *name;
|
|
||||||
};
|
|
||||||
typedef struct _eet_event_type_mapping eet_event_type_mapping;
|
|
||||||
|
|
||||||
struct _Variant_Type_st
|
|
||||||
{
|
|
||||||
const char *type;
|
|
||||||
Eina_Bool unknow : 1;
|
|
||||||
};
|
|
||||||
typedef struct _Variant_Type_st Variant_Type_st;
|
|
||||||
|
|
||||||
struct _Variant_st
|
|
||||||
{
|
|
||||||
Variant_Type_st t;
|
|
||||||
void *data; /* differently than the union type, we
|
|
||||||
* don't need to pre-allocate the memory
|
|
||||||
* for the field*/
|
|
||||||
};
|
|
||||||
typedef struct _Variant_st Variant_st;
|
|
||||||
|
|
||||||
|
|
||||||
struct _Timer_Data
|
|
||||||
{
|
|
||||||
unsigned int recent_event_time;
|
|
||||||
Eina_List *current_event;
|
|
||||||
};
|
|
||||||
typedef struct _Timer_Data Timer_Data;
|
|
||||||
|
|
||||||
struct _Tsuite_Data
|
|
||||||
{
|
|
||||||
int serial; /**< Serial number of current-file */
|
|
||||||
Timer_Data *td;
|
|
||||||
};
|
|
||||||
typedef struct _Tsuite_Data Tsuite_Data;
|
|
||||||
|
|
||||||
struct _mouse_in_mouse_out
|
|
||||||
{
|
|
||||||
unsigned int timestamp;
|
|
||||||
int n_evas;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _mouse_down_mouse_up
|
|
||||||
{
|
|
||||||
int b;
|
|
||||||
Evas_Button_Flags flags;
|
|
||||||
unsigned int timestamp;
|
|
||||||
int n_evas;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _mouse_move
|
|
||||||
{
|
|
||||||
int x;
|
|
||||||
int y;
|
|
||||||
unsigned int timestamp;
|
|
||||||
int n_evas;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _mouse_wheel
|
|
||||||
{
|
|
||||||
int direction;
|
|
||||||
int z;
|
|
||||||
unsigned int timestamp;
|
|
||||||
int n_evas;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _key_down_key_up
|
|
||||||
{
|
|
||||||
unsigned int timestamp;
|
|
||||||
const char *keyname;
|
|
||||||
const char *key;
|
|
||||||
const char *string;
|
|
||||||
const char *compose;
|
|
||||||
int n_evas;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _key_down_key_up_with_keycode
|
|
||||||
{
|
|
||||||
unsigned int timestamp;
|
|
||||||
const char *keyname;
|
|
||||||
const char *key;
|
|
||||||
const char *string;
|
|
||||||
const char *compose;
|
|
||||||
int n_evas;
|
|
||||||
unsigned int keycode;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _multi_event
|
|
||||||
{
|
|
||||||
int d;
|
|
||||||
int b; /* In case of simple mouse down/up, corresponds to the button */
|
|
||||||
int x;
|
|
||||||
int y;
|
|
||||||
double rad;
|
|
||||||
double radx;
|
|
||||||
double rady;
|
|
||||||
double pres;
|
|
||||||
double ang;
|
|
||||||
double fx;
|
|
||||||
double fy;
|
|
||||||
Evas_Button_Flags flags;
|
|
||||||
unsigned int timestamp;
|
|
||||||
int n_evas;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _multi_move
|
|
||||||
{
|
|
||||||
int d;
|
|
||||||
int x;
|
|
||||||
int y;
|
|
||||||
double rad;
|
|
||||||
double radx;
|
|
||||||
double rady;
|
|
||||||
double pres;
|
|
||||||
double ang;
|
|
||||||
double fx;
|
|
||||||
double fy;
|
|
||||||
unsigned int timestamp;
|
|
||||||
int n_evas;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct _mouse_in_mouse_out mouse_in_mouse_out;
|
|
||||||
typedef struct _mouse_down_mouse_up mouse_down_mouse_up;
|
|
||||||
typedef struct _mouse_move mouse_move;
|
|
||||||
typedef struct _mouse_wheel mouse_wheel;
|
|
||||||
typedef struct _multi_event multi_event;
|
|
||||||
typedef struct _multi_move multi_move;
|
|
||||||
typedef struct _key_down_key_up key_down_key_up;
|
|
||||||
typedef struct _key_down_key_up_with_keycode key_down_key_up_with_keycode;
|
|
||||||
typedef struct _mouse_in_mouse_out take_screenshot;
|
|
||||||
|
|
||||||
/* START - EET support typedefs */
|
|
||||||
#define TSUITE_EVENT_MOUSE_IN_STR "tsuite_event_mouse_in"
|
|
||||||
#define TSUITE_EVENT_MOUSE_OUT_STR "tsuite_event_mouse_out"
|
|
||||||
#define TSUITE_EVENT_MOUSE_DOWN_STR "tsuite_event_mouse_down"
|
|
||||||
#define TSUITE_EVENT_MOUSE_UP_STR "tsuite_event_mouse_up"
|
|
||||||
#define TSUITE_EVENT_MOUSE_MOVE_STR "tsuite_event_mouse_move"
|
|
||||||
#define TSUITE_EVENT_MOUSE_WHEEL_STR "tsuite_event_mouse_wheel"
|
|
||||||
#define TSUITE_EVENT_MULTI_DOWN_STR "tsuite_event_multi_down"
|
|
||||||
#define TSUITE_EVENT_MULTI_UP_STR "tsuite_event_multi_up"
|
|
||||||
#define TSUITE_EVENT_MULTI_MOVE_STR "tsuite_event_multi_move"
|
|
||||||
#define TSUITE_EVENT_KEY_DOWN_STR "tsuite_event_key_down"
|
|
||||||
#define TSUITE_EVENT_KEY_UP_STR "tsuite_event_key_up"
|
|
||||||
#define TSUITE_EVENT_KEY_DOWN_WITH_KEYCODE_STR "tsuite_event_key_down_with_keycode"
|
|
||||||
#define TSUITE_EVENT_KEY_UP_WITH_KEYCODE_STR "tsuite_event_key_up_with_keycode"
|
|
||||||
#define TSUITE_EVENT_TAKE_SHOT_STR "tsuite_event_take_shot"
|
|
||||||
|
|
||||||
struct _Lists_st
|
|
||||||
{
|
|
||||||
Eina_List *variant_list;
|
|
||||||
unsigned int first_timestamp;
|
|
||||||
};
|
|
||||||
typedef struct _Lists_st Lists_st;
|
|
||||||
|
|
||||||
struct _data_desc
|
|
||||||
{
|
|
||||||
Eet_Data_Descriptor *take_screenshot;
|
|
||||||
Eet_Data_Descriptor *mouse_in_mouse_out;
|
|
||||||
Eet_Data_Descriptor *mouse_down_mouse_up;
|
|
||||||
Eet_Data_Descriptor *mouse_move;
|
|
||||||
Eet_Data_Descriptor *mouse_wheel;
|
|
||||||
Eet_Data_Descriptor *multi_event;
|
|
||||||
Eet_Data_Descriptor *multi_move;
|
|
||||||
Eet_Data_Descriptor *key_down_key_up;
|
|
||||||
Eet_Data_Descriptor *key_down_key_up_with_keycode;
|
|
||||||
|
|
||||||
/* list, variant EET desc support */
|
|
||||||
Eet_Data_Descriptor *_lists_descriptor;
|
|
||||||
Eet_Data_Descriptor *_variant_descriptor;
|
|
||||||
Eet_Data_Descriptor *_variant_unified_descriptor;
|
|
||||||
};
|
|
||||||
typedef struct _data_desc data_desc;
|
|
||||||
/* END - EET support typedefs */
|
|
||||||
|
|
||||||
/* START Event struct descriptors */
|
|
||||||
Eet_Data_Descriptor *take_screenshot_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *mouse_in_mouse_out_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *mouse_down_mouse_up_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *mouse_move_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *mouse_wheel_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *key_down_key_up_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *key_down_key_up_with_keycode_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *multi_event_desc_make(void);
|
|
||||||
Eet_Data_Descriptor *multi_move_desc_make(void);
|
|
||||||
data_desc *_data_descriptors_init(void);
|
|
||||||
void _data_descriptors_shutdown(void);
|
|
||||||
/* END Event struct descriptors */
|
|
||||||
|
|
||||||
Tsuite_Event_Type tsuite_event_mapping_type_get(const char *name);
|
|
||||||
const char * tsuite_event_mapping_type_str_get(Tsuite_Event_Type t);
|
|
||||||
const char * _variant_type_get(const void *data, Eina_Bool *unknow);
|
|
||||||
Eina_Bool _variant_type_set(const char *type, void *data, Eina_Bool unknow);
|
|
||||||
|
|
||||||
Tsuite_Event_Type tsuite_event_mapping_type_get(const char *name);
|
|
||||||
#if 0
|
|
||||||
Lists_st * free_events(Lists_st *st, Eina_Bool recording);
|
|
||||||
void write_events(const char *filename, Lists_st *vr_list);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue