-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emulator actual embodiment: bodypart list related
- Loading branch information
1 parent
b1aa784
commit 359fcd4
Showing
3 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ |