Changeset 694253c in mainline for uspace/srv/sysman/unit.h


Ignore:
Timestamp:
2019-08-03T07:35:41Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
c0c388d2
Parents:
f42ee6f
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-03-13 02:06:30)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-03 07:35:41)
Message:

Skeleton for sysman (unit) jobs control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/unit.h

    rf42ee6f r694253c  
    33
    44#include <adt/list.h>
     5#include <fibril_synch.h>
    56
    67#include "unit_mnt.h"
     
    1516typedef enum {
    1617        STATE_EMBRYO = 0,
     18        STATE_STARTED,
    1719        STATE_STOPPED
    1820} unit_state_t;
     
    2224
    2325        unit_type_t type;
     26
    2427        unit_state_t state;
     28        fibril_mutex_t state_mtx;
     29        fibril_condvar_t state_cv;
    2530
    2631        list_t dependencies;
     
    3742extern void unit_destroy(unit_t **);
    3843
     44extern int unit_start(unit_t *);
    3945
    4046#endif
Note: See TracChangeset for help on using the changeset viewer.