Skip to content

Commit

Permalink
Emulator actual embodiment: bodypart list related
Browse files Browse the repository at this point in the history
  • Loading branch information
divanchykhin committed May 30, 2015
1 parent b1aa784 commit 359fcd4
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/emulator/sa_bodypart_list.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*******************************************************************************
Copyright (C) 2015 OLogN Technologies AG
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
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.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*******************************************************************************/

/*******************************************************************************
THIS FILE IS MANUALLY OR AUTOMATICALLY GENERATED BASED ON DESIRED PLUGIN LIST
*******************************************************************************/


#include "sa_bodypart_list.h"

// include declarations of respective plugins
#include "sa_test_plugins.h"

DefaultTestingPluginConfig DefaultTestingPluginConfig_struct =
{
0,
};

DefaultTestingPluginState DefaultTestingPluginState_struct;


const bodypart_item bodyparts[ BODYPARTS_MAX ] =
{
{ default_test_plugin_handler_init, default_test_plugin_handler, &DefaultTestingPluginConfig_struct, &DefaultTestingPluginState_struct },
};
33 changes: 33 additions & 0 deletions tests/emulator/sa_bodypart_list.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*******************************************************************************
Copyright (C) 2015 OLogN Technologies AG
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
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.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*******************************************************************************/

/*******************************************************************************
THIS FILE IS MANUALLY OR AUTOMATICALLY GENERATED BASED ON DESIRED PLUGIN LIST
*******************************************************************************/



#if !defined __SA_SA_BODYPART_LIST_H__
#define __SA_SA_BODYPART_LIST_H__

#include "sa_bodypart_list_common.h"

#define BODYPARTS_MAX 1
extern const bodypart_item bodyparts[ BODYPARTS_MAX ];


#endif // __SA_SA_BODYPART_LIST_H__
38 changes: 38 additions & 0 deletions tests/emulator/sa_bodypart_list_common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*******************************************************************************
Copyright (C) 2015 OLogN Technologies AG
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
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.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*******************************************************************************/


#if !defined __SA_SA_BODYPART_LIST_COMMON_H__
#define __SA_SA_BODYPART_LIST_COMMON_H__

#include "sa-common.h"
#include "sa-data-types.h"
#include "zepto-mem-mngmt.h"

typedef uint8_t (*plugin_handler_config_fn)(const void* plugin_config, void* plugin_state);
typedef uint8_t (*plugin_handler_fn)( const void* plugin_config, void* plugin_state, parser_obj* command, MEMORY_HANDLE reply/*, WaitingFor* waiting_for*/, uint8_t first_byte );

typedef struct _bodypart_item
{
plugin_handler_config_fn phi_fn;
plugin_handler_fn ph_fn;
void* ph_config;
void* ph_state;
} bodypart_item;


#endif // __SA_SA_BODYPART_LIST_COMMON_H__

0 comments on commit 359fcd4

Please sign in to comment.