RTEMS
tr-object-ident.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 
9 /*
10  * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
11  *
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions
14  * are met:
15  * 1. Redistributions of source code must retain the above copyright
16  * notice, this list of conditions and the following disclaimer.
17  * 2. Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in the
19  * documentation and/or other materials provided with the distribution.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  */
33 
34 /*
35  * Do not manually edit this file. It is part of the RTEMS quality process
36  * and was automatically generated.
37  *
38  * If you find something that needs to be fixed or worded better please
39  * post a report to an RTEMS mailing list or raise a bug report:
40  *
41  * https://docs.rtems.org/branches/master/user/support/bugs.html
42  *
43  * For information on updating and regenerating please refer to:
44  *
45  * https://docs.rtems.org/branches/master/eng/req/howto.html
46  */
47 
48 #ifndef _TR_OBJECT_IDENT_H
49 #define _TR_OBJECT_IDENT_H
50 
51 #include <rtems.h>
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
63 typedef enum {
64  RtemsReqIdent_Pre_Name_Invalid,
65  RtemsReqIdent_Pre_Name_Valid,
66  RtemsReqIdent_Pre_Name_NA
67 } RtemsReqIdent_Pre_Name;
68 
69 typedef enum {
70  RtemsReqIdent_Pre_Node_Local,
71  RtemsReqIdent_Pre_Node_Remote,
72  RtemsReqIdent_Pre_Node_Invalid,
73  RtemsReqIdent_Pre_Node_SearchAll,
74  RtemsReqIdent_Pre_Node_SearchOther,
75  RtemsReqIdent_Pre_Node_SearchLocal,
76  RtemsReqIdent_Pre_Node_NA
77 } RtemsReqIdent_Pre_Node;
78 
79 typedef enum {
80  RtemsReqIdent_Pre_Id_NullPtr,
81  RtemsReqIdent_Pre_Id_Valid,
82  RtemsReqIdent_Pre_Id_NA
83 } RtemsReqIdent_Pre_Id;
84 
85 typedef enum {
86  RtemsReqIdent_Post_Status_Ok,
87  RtemsReqIdent_Post_Status_InvAddr,
88  RtemsReqIdent_Post_Status_InvName,
89  RtemsReqIdent_Post_Status_InvNode,
90  RtemsReqIdent_Post_Status_NA
91 } RtemsReqIdent_Post_Status;
92 
93 typedef enum {
94  RtemsReqIdent_Post_Id_Nop,
95  RtemsReqIdent_Post_Id_NullPtr,
96  RtemsReqIdent_Post_Id_LocalObj,
97  RtemsReqIdent_Post_Id_RemoteObj,
98  RtemsReqIdent_Post_Id_NA
99 } RtemsReqIdent_Post_Id;
100 
101 #define ClassicObjectIdentName \
102  rtems_build_name( 'I', 'D', 'N', 'T' )
103 
112 void RtemsReqIdent_Run(
113  rtems_id id_local_object,
114  rtems_status_code ( *action )( rtems_name, uint32_t, rtems_id * )
115 );
116 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* _TR_OBJECT_IDENT_H */
uint32_t rtems_name
This type is used to represent a Classic API object name.
Definition: types.h:227
void RtemsReqIdent_Run(rtems_id id_local_object, rtems_status_code(*action)(rtems_name, uint32_t, rtems_id *))
Runs the parameterized test case.
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:82
This header file defines the RTEMS Classic API.
Objects_Id rtems_id
Values of this type identify an RTEMS object.
Definition: types.h:99