1 /** 2 * @addtogroup MC_ROOTID mcRootid - Root container id. 3 * 4 * Global definition of root ID. 5 * 6 * <!-- Copyright Giesecke & Devrient GmbH 2011-2012 --> 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 3. The name of the author may not be used to endorse or promote 17 * products derived from this software without specific prior 18 * written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 21 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 22 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 24 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 26 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * 32 * @ingroup MC_DATA_TYPES 33 * @{ 34 */ 35 36 #ifndef MC_ROOTID_H_ 37 #define MC_ROOTID_H_ 38 39 /** Root Identifier type. */ 40 typedef uint32_t mcRootid_t; 41 42 /** Reserved root id value 1. */ 43 static const mcRootid_t MC_ROOTID_RESERVED1 = 0; 44 45 /** Reserved root id value 2. */ 46 static const mcRootid_t MC_ROOTID_RESERVED2 = 0xFFFFFFFF; 47 48 /** Root id for system applications. */ 49 static const mcRootid_t MC_ROOTID_SYSTEM = 0xFFFFFFFE; 50 51 #endif // MC_ROOTID_H_ 52 53 /** @} */ 54 55