Changeset b55f62a in mainline for uspace/srv/sysman/unit.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/srv/sysman/unit.h

    r2df7d824 rb55f62a  
    3939#include <conf/text_parse.h>
    4040#include <fibril_synch.h>
    41 
    42 typedef enum {
    43         UNIT_TYPE_INVALID = -1,
    44         UNIT_CONFIGURATION = 0,
    45         UNIT_MOUNT,
    46         UNIT_SERVICE,
    47         UNIT_TARGET
    48 } unit_type_t;
    49 
    50 typedef enum {
    51         STATE_EMBRYO = 0,
    52         STATE_STARTING,
    53         STATE_STARTED,
    54         STATE_STOPPED,
    55         STATE_FAILED
    56 } unit_state_t;
     41#include <ipc/sysman.h>
    5742
    5843/* Forward declarations */
     
    6651        /** Link to name-to-unit hash table */
    6752        ht_link_t units_by_name;
     53
     54        /** Link to handle-to-unit hash table */
     55        ht_link_t units_by_handle;
    6856
    6957        /** Link to list of all units */
     
    8068        job_t *job;
    8169
     70        unit_handle_t handle;
    8271        unit_type_t type;
    8372        char *name;
Note: See TracChangeset for help on using the changeset viewer.