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


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.c

    rc0e4fc50 rdda2602  
    7070        unit->state = STATE_EMBRYO;
    7171
     72        link_initialize(&unit->units);
     73        link_initialize(&unit->bfs_link);
    7274        list_initialize(&unit->dependants);
    7375        list_initialize(&unit->dependencies);
     
    181183}
    182184
    183 bool unit_parse_unit_list(const char *value, void *dst, text_parse_t *parse,
     185bool unit_parse_unit_list(const char *string, void *dst, text_parse_t *parse,
    184186    size_t lineno)
    185187{
    186188        unit_t *unit = dst;
    187189        bool result;
    188         char *my_value = str_dup(value);
    189 
    190         if (!my_value) {
     190        char *my_string = str_dup(string);
     191
     192        if (!my_string) {
    191193                result = false;
    192194                goto finish;
    193195        }
    194196
    195         char *to_split = my_value;
     197        char *to_split = my_string;
    196198        char *cur_tok;
    197199
     
    206208
    207209finish:
    208         free(my_value);
     210        free(my_string);
    209211        return result;
    210212}
Note: See TracChangeset for help on using the changeset viewer.