Changeset b55f62a in mainline for uspace/lib/c/include/ipc/sysman.h


Ignore:
Timestamp:
2019-08-07T09:29:33Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
918ac9b
Parents:
2df7d824
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-02 00:50:02)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 09:29:33)
Message:

sysman: Create control utility sysctl

  • can list units and their states (starts to feel like systemctl :-)
  • helluva boilerplate to get some IPC between sysctl and sysman :-/

Conflicts:

boot/Makefile.common
uspace/Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/sysman.h

    r2df7d824 rb55f62a  
    4444        SYSMAN_BROKER_EXP_ADDED,
    4545        SYSMAN_BROKER_EXP_REMOVED,
    46         SYSMAN_CTL_UNIT_START
     46        SYSMAN_CTL_UNIT_START,
     47        SYSMAN_CTL_GET_UNITS,
     48        SYSMAN_CTL_UNIT_GET_NAME,
     49        SYSMAN_CTL_UNIT_GET_STATE
    4750} sysman_ipc_method_t;
    4851
     
    5356} sysman_interface_t;
    5457
     58typedef sysarg_t unit_handle_t;
     59
     60typedef enum {
     61        UNIT_TYPE_INVALID = -1,
     62        UNIT_CONFIGURATION = 0,
     63        UNIT_MOUNT,
     64        UNIT_SERVICE,
     65        UNIT_TARGET
     66} unit_type_t;
     67
     68typedef enum {
     69        STATE_EMBRYO = 0,
     70        STATE_STARTING,
     71        STATE_STARTED,
     72        STATE_STOPPED,
     73        STATE_FAILED
     74} unit_state_t;
     75
    5576#endif
    5677
Note: See TracChangeset for help on using the changeset viewer.