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


Ignore:
Timestamp:
2020-03-08T16:47:18Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
a73aaec1
Parents:
13b4504
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-03-06 18:10:45)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-03-08 16:47:18)
Message:

Adding "ConditionArchitecture" to sysman's unit

the services s3c24xx_uart and s3c24xx_ts are specific for
arm32. This newly flag allows sysman to ignore those units
when they are asked to be loaded

File:
1 edited

Legend:

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

    r13b4504 raa0faeca  
    5555} repo_state_t;
    5656
     57typedef enum {
     58        UNIT_CONDITION_NONE = 0,
     59        UNIT_CONDITION_ARCHITECTURE = 1
     60} unit_condition_t;
     61
    5762typedef struct {
    5863        /** Link to name-to-unit hash table */
     
    9297        list_t edges_in;
    9398        list_t edges_out;
     99
     100        /**
     101         * flag for conditions which were not meet
     102         * determines if the unit should be started
     103         */
     104        unit_condition_t conditions;
    94105} unit_t;
    95106
     
    161172
    162173extern const char *unit_name(const unit_t *);
     174extern void unit_log_condition(unit_t *unit);
    163175
    164176extern bool unit_parse_unit_list(const char *, void *, text_parse_t *, size_t);
     177extern bool unit_parse_condition_architecture(const char *, void *, text_parse_t *, size_t);
    165178
    166179#endif
Note: See TracChangeset for help on using the changeset viewer.