source: rtems/cpukit/sapi/src/extension.c @ 0f5b2c09

Last change on this file since 0f5b2c09 was 0f5b2c09, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 10, 2018 at 11:51:33 AM

rtems: Use object information to get config max

Use functions instead of macros. Add missing
rtems_configuration_get_maximum_*() functions.

Update #3621.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 *
4 * @brief Initialize Extension Manager
5 *
6 * @ingroup ClassicUserExtensions
7 */
8
9/*
10 *  Extension Manager
11 *
12 *  COPYRIGHT (c) 1989-2008.
13 *  On-Line Applications Research Corporation (OAR).
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.org/license/LICENSE.
18 */
19
20#if HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/extensionimpl.h>
25#include <rtems/config.h>
26#include <rtems/sysinit.h>
27
28Objects_Information _Extension_Information;
29
30static void _Extension_Manager_initialization(void)
31{
32  _Objects_Initialize_information(
33    &_Extension_Information,
34    OBJECTS_CLASSIC_API,                 /* object API */
35    OBJECTS_RTEMS_EXTENSIONS,
36    Configuration.maximum_extensions,
37    sizeof( Extension_Control ),
38    OBJECTS_NO_STRING_NAME,    /* maximum length of an object name */
39    NULL                       /* Proxy extraction support callout */
40  );
41}
42
43RTEMS_SYSINIT_ITEM(
44  _Extension_Manager_initialization,
45  RTEMS_SYSINIT_USER_EXTENSIONS,
46  RTEMS_SYSINIT_ORDER_MIDDLE
47);
Note: See TracBrowser for help on using the repository browser.