Changeset dda2602 in mainline for uspace/srv/sysman/unit.h


Ignore:
Timestamp:
2019-08-03T09:41:07Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
dd5c623
Parents:
c0e4fc50
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-05-08 11:10:06)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-03 09:41:07)
Message:

sysman: Create units to start up to compositor

  • add necessary units to support basic GUI (barber, vterm)
  • lacking autostart is compensated with explicit dependencies
  • IPC_FLAG_AUTOSTART in compositor and locsrv fix
  • paths to v* binaries
  • refactored job closure creation

Conflicts:

boot/Makefile.common
uspace/app/vlaunch/vlaunch.c
uspace/srv/hid/compositor/compositor.c
uspace/srv/locsrv/locsrv.c

File:
1 edited

Legend:

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

    rc0e4fc50 rdda2602  
    4242typedef enum {
    4343        UNIT_TYPE_INVALID = -1,
    44         UNIT_TARGET = 0,
     44        UNIT_CONFIGURATION = 0,
    4545        UNIT_MOUNT,
    46         UNIT_CONFIGURATION,
    47         UNIT_SERVICE
     46        UNIT_SERVICE,
     47        UNIT_TARGET
    4848} unit_type_t;
    4949
     
    5656} unit_state_t;
    5757
     58/* Forward declarations */
     59typedef struct unit_vmt unit_vmt_t;
     60struct unit_vmt;
     61
     62typedef struct job job_t;
     63struct job;
     64
    5865typedef struct {
    59         ht_link_t units;
     66        /** Link to name-to-unit hash table */
     67        ht_link_t units_by_name;
     68
     69        /** Link to list of all units */
     70        link_t units;
     71
     72        /** Link to queue, when BFS traversing units */
     73        link_t bfs_link;
     74
     75        /** Seen tag for BFS traverse, must be reset before each BFS */
     76        bool bfs_tag;
     77
     78        job_t *job;
    6079
    6180        unit_type_t type;
     
    6786        list_t dependants;
    6887} unit_t;
    69 
    70 typedef struct unit_vmt unit_vmt_t;
    71 struct unit_vmt;
    7288
    7389#include "unit_cfg.h"
Note: See TracChangeset for help on using the changeset viewer.