Commit 1a1300c7 by Marcus Winter

mtapi_c: separated forward declarations to avoid type redefinitions

parent 5034716a
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_ACTION_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_ACTION_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Action type
* \memberof embb_mtapi_action_struct
*/
typedef struct embb_mtapi_action_struct embb_mtapi_action_t;
/**
* Action pool type.
* \memberof embb_mtapi_action_pool_struct
*/
typedef struct embb_mtapi_action_pool_struct embb_mtapi_action_pool_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_ACTION_T_FWD_H_
...@@ -40,7 +40,7 @@ extern "C" { ...@@ -40,7 +40,7 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_node_struct embb_mtapi_node_t; #include <embb_mtapi_node_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -61,11 +61,7 @@ struct embb_mtapi_group_struct { ...@@ -61,11 +61,7 @@ struct embb_mtapi_group_struct {
embb_mtapi_task_queue_t queue; embb_mtapi_task_queue_t queue;
}; };
/** #include <embb_mtapi_group_t_fwd.h>
* Group type
* \memberof embb_mtapi_group_struct
*/
typedef struct embb_mtapi_group_struct embb_mtapi_group_t;
/** /**
* Default constructor. * Default constructor.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_GROUP_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_GROUP_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Group type
* \memberof embb_mtapi_group_struct
*/
typedef struct embb_mtapi_group_struct embb_mtapi_group_t;
/**
* Group pool type.
* \memberof embb_mtapi_group_pool_struct
*/
typedef struct embb_mtapi_group_pool_struct embb_mtapi_group_pool_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_GROUP_T_H_
...@@ -36,8 +36,8 @@ extern "C" { ...@@ -36,8 +36,8 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_node_struct embb_mtapi_node_t; #include <embb_mtapi_node_t_fwd.h>
typedef struct embb_mtapi_action_struct embb_mtapi_action_t; #include <embb_mtapi_action_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -58,11 +58,7 @@ struct embb_mtapi_job_struct { ...@@ -58,11 +58,7 @@ struct embb_mtapi_job_struct {
mtapi_action_hndl_t* actions; mtapi_action_hndl_t* actions;
}; };
/** #include <embb_mtapi_job_t_fwd.h>
* Job type.
* \memberof embb_mtapi_job_struct
*/
typedef struct embb_mtapi_job_struct embb_mtapi_job_t;
/** /**
* Constructs the global job list. * Constructs the global job list.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_JOB_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_JOB_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Job type.
* \memberof embb_mtapi_job_struct
*/
typedef struct embb_mtapi_job_struct embb_mtapi_job_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_JOB_T_FWD_H_
...@@ -39,12 +39,12 @@ extern "C" { ...@@ -39,12 +39,12 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_job_struct embb_mtapi_job_t; #include <embb_mtapi_job_t_fwd.h>
typedef struct embb_mtapi_scheduler_struct embb_mtapi_scheduler_t; #include <embb_mtapi_scheduler_t_fwd.h>
typedef struct embb_mtapi_action_pool_struct embb_mtapi_action_pool_t; #include <embb_mtapi_action_t_fwd.h>
typedef struct embb_mtapi_group_pool_struct embb_mtapi_group_pool_t; #include <embb_mtapi_group_t_fwd.h>
typedef struct embb_mtapi_task_pool_struct embb_mtapi_task_pool_t; #include <embb_mtapi_task_t_fwd.h>
typedef struct embb_mtapi_queue_pool_struct embb_mtapi_queue_pool_t; #include <embb_mtapi_queue_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -73,11 +73,7 @@ struct embb_mtapi_node_struct { ...@@ -73,11 +73,7 @@ struct embb_mtapi_node_struct {
mtapi_affinity_t affinity_all; mtapi_affinity_t affinity_all;
}; };
/** #include <embb_mtapi_node_t_fwd.h>
* Node type.
* \memberof embb_mtapi_node_struct
*/
typedef struct embb_mtapi_node_struct embb_mtapi_node_t;
/** /**
* Checks if the node singleton was initialized already. * Checks if the node singleton was initialized already.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_NODE_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_NODE_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Node type.
* \memberof embb_mtapi_node_struct
*/
typedef struct embb_mtapi_node_struct embb_mtapi_node_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_NODE_T_FWD_H_
...@@ -45,11 +45,6 @@ struct embb_mtapi_##TYPE##_pool_struct \ ...@@ -45,11 +45,6 @@ struct embb_mtapi_##TYPE##_pool_struct \
embb_mtapi_##TYPE##_t * storage; \ embb_mtapi_##TYPE##_t * storage; \
}; \ }; \
\ \
/** TYPE pool type.
\memberof embb_mtapi_##TYPE##_pool_struct
*/ \
typedef struct embb_mtapi_##TYPE##_pool_struct embb_mtapi_##TYPE##_pool_t; \
\
/** operator new with configurable capacity. /** operator new with configurable capacity.
\memberof embb_mtapi_##TYPE##_pool_struct \memberof embb_mtapi_##TYPE##_pool_struct
*/ \ */ \
......
...@@ -40,7 +40,7 @@ extern "C" { ...@@ -40,7 +40,7 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_task_queue_struct embb_mtapi_task_queue_t; #include <embb_mtapi_task_queue_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -63,11 +63,7 @@ struct embb_mtapi_queue_struct { ...@@ -63,11 +63,7 @@ struct embb_mtapi_queue_struct {
mtapi_affinity_t ordered_affinity; mtapi_affinity_t ordered_affinity;
}; };
/** #include <embb_mtapi_queue_t_fwd.h>
* Queue type.
* \memberof embb_mtapi_queue_struct
*/
typedef struct embb_mtapi_queue_struct embb_mtapi_queue_t;
/** /**
* Default constructor. * Default constructor.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_QUEUE_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_QUEUE_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Queue type.
* \memberof embb_mtapi_queue_struct
*/
typedef struct embb_mtapi_queue_struct embb_mtapi_queue_t;
/**
* Queue pool type.
* \memberof embb_mtapi_queue_pool_struct
*/
typedef struct embb_mtapi_queue_pool_struct embb_mtapi_queue_pool_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_QUEUE_T_FWD_H_
...@@ -39,10 +39,10 @@ extern "C" { ...@@ -39,10 +39,10 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_queue_struct embb_mtapi_queue_t; #include <embb_mtapi_queue_t_fwd.h>
typedef struct embb_mtapi_thread_context_struct embb_mtapi_thread_context_t; #include <embb_mtapi_thread_context_t_fwd.h>
typedef struct embb_mtapi_task_struct embb_mtapi_task_t; #include <embb_mtapi_task_t_fwd.h>
typedef struct embb_mtapi_node_struct embb_mtapi_node_t; #include <embb_mtapi_node_t_fwd.h>
typedef int (embb_mtapi_scheduler_worker_func_t)(void * args); typedef int (embb_mtapi_scheduler_worker_func_t)(void * args);
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -87,11 +87,7 @@ struct embb_mtapi_scheduler_struct { ...@@ -87,11 +87,7 @@ struct embb_mtapi_scheduler_struct {
embb_atomic_int affine_task_counter; embb_atomic_int affine_task_counter;
}; };
/** #include <embb_mtapi_scheduler_t_fwd.h>
* Scheduler type.
* \memberof embb_mtapi_scheduler_struct
*/
typedef struct embb_mtapi_scheduler_struct embb_mtapi_scheduler_t;
/** /**
* The default worker thread function used by the scheduler. Implements * The default worker thread function used by the scheduler. Implements
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_SCHEDULER_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_SCHEDULER_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Scheduler type.
* \memberof embb_mtapi_scheduler_struct
*/
typedef struct embb_mtapi_scheduler_struct embb_mtapi_scheduler_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_SCHEDULER_T_FWD_H_
...@@ -36,8 +36,8 @@ extern "C" { ...@@ -36,8 +36,8 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_thread_context_struct embb_mtapi_thread_context_t; #include <embb_mtapi_thread_context_t_fwd.h>
typedef struct embb_mtapi_task_struct embb_mtapi_task_t; #include <embb_mtapi_task_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -55,11 +55,7 @@ struct embb_mtapi_task_context_struct { ...@@ -55,11 +55,7 @@ struct embb_mtapi_task_context_struct {
embb_mtapi_thread_context_t* thread_context; embb_mtapi_thread_context_t* thread_context;
}; };
/** #include <embb_mtapi_task_context_t_fwd.h>
* Task context type.
* \memberof embb_mtapi_task_context_struct
*/
typedef struct embb_mtapi_task_context_struct embb_mtapi_task_context_t;
/** /**
* Constructor from a thread_context and a task. * Constructor from a thread_context and a task.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_TASK_CONTEXT_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_TASK_CONTEXT_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Task context type.
* \memberof embb_mtapi_task_context_struct
*/
typedef struct embb_mtapi_task_context_struct embb_mtapi_task_context_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_TASK_CONTEXT_T_FWD_H_
...@@ -40,7 +40,7 @@ extern "C" { ...@@ -40,7 +40,7 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_task_struct embb_mtapi_task_t; #include <embb_mtapi_task_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -60,11 +60,7 @@ struct embb_mtapi_task_queue_struct { ...@@ -60,11 +60,7 @@ struct embb_mtapi_task_queue_struct {
embb_mtapi_spinlock_t lock; embb_mtapi_spinlock_t lock;
}; };
/** #include <embb_mtapi_task_queue_t_fwd.h>
* Task queue type.
* \memberof embb_mtapi_task_queue_struct
*/
typedef struct embb_mtapi_task_queue_struct embb_mtapi_task_queue_t;
/** /**
* Default constructor. * Default constructor.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_TASK_QUEUE_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_TASK_QUEUE_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Task queue type.
* \memberof embb_mtapi_task_queue_struct
*/
typedef struct embb_mtapi_task_queue_struct embb_mtapi_task_queue_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_TASK_QUEUE_T_FWD_H_
...@@ -40,8 +40,8 @@ extern "C" { ...@@ -40,8 +40,8 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_task_context_struct embb_mtapi_task_context_t; #include <embb_mtapi_task_context_t_fwd.h>
typedef struct embb_mtapi_task_pool_struct embb_mtapi_task_pool_t; #include <embb_mtapi_task_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -73,11 +73,7 @@ struct embb_mtapi_task_struct { ...@@ -73,11 +73,7 @@ struct embb_mtapi_task_struct {
mtapi_status_t error_code; mtapi_status_t error_code;
}; };
/** #include <embb_mtapi_task_t_fwd.h>
* Task type.
* \memberof embb_mtapi_task_struct
*/
typedef struct embb_mtapi_task_struct embb_mtapi_task_t;
/** /**
* Pooled operator new. * Pooled operator new.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_TASK_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_TASK_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Task type.
* \memberof embb_mtapi_task_struct
*/
typedef struct embb_mtapi_task_struct embb_mtapi_task_t;
/**
* Task pool type.
* \memberof embb_mtapi_task_pool_struct
*/
typedef struct embb_mtapi_task_pool_struct embb_mtapi_task_pool_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_TASK_T_FWD_H_
...@@ -36,7 +36,7 @@ extern "C" { ...@@ -36,7 +36,7 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_task_struct embb_mtapi_task_t; #include <embb_mtapi_task_t_fwd.h>
/* ---- TYPE DEFINITIONS --------------------------------------------------- */ /* ---- TYPE DEFINITIONS --------------------------------------------------- */
......
...@@ -39,9 +39,9 @@ extern "C" { ...@@ -39,9 +39,9 @@ extern "C" {
/* ---- FORWARD DECLARATIONS ----------------------------------------------- */ /* ---- FORWARD DECLARATIONS ----------------------------------------------- */
typedef struct embb_mtapi_task_queue_struct embb_mtapi_task_queue_t; #include <embb_mtapi_task_queue_t_fwd.h>
typedef struct embb_mtapi_node_struct embb_mtapi_node_t; #include <embb_mtapi_node_t_fwd.h>
typedef struct embb_mtapi_scheduler_struct embb_mtapi_scheduler_t; #include <embb_mtapi_scheduler_t_fwd.h>
/* ---- CLASS DECLARATION -------------------------------------------------- */ /* ---- CLASS DECLARATION -------------------------------------------------- */
...@@ -68,11 +68,7 @@ struct embb_mtapi_thread_context_struct { ...@@ -68,11 +68,7 @@ struct embb_mtapi_thread_context_struct {
mtapi_status_t status; mtapi_status_t status;
}; };
/** #include <embb_mtapi_thread_context_t_fwd.h>
* Thread context type.
* \memberof embb_mtapi_thread_context_struct
*/
typedef struct embb_mtapi_thread_context_struct embb_mtapi_thread_context_t;
/** /**
* Constructor using attributes from node and a given core number. * Constructor using attributes from node and a given core number.
......
/*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_C_SRC_EMBB_MTAPI_THREAD_CONTEXT_T_FWD_H_
#define MTAPI_C_SRC_EMBB_MTAPI_THREAD_CONTEXT_T_FWD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Thread context type.
* \memberof embb_mtapi_thread_context_struct
*/
typedef struct embb_mtapi_thread_context_struct embb_mtapi_thread_context_t;
#ifdef __cplusplus
}
#endif
#endif // MTAPI_C_SRC_EMBB_MTAPI_THREAD_CONTEXT_T_FWD_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment