Changeset fd11144 in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2020-07-04T21:52:35Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc4abca
Parents:
e79a025
Message:

Make display service argument optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    re79a025 rfd11144  
    6969
    7070#define SRV_DISPLAY  "/srv/hid/display"
    71 #define DISPLAY_SVC  "hid/display"
    7271
    7372#define HID_INPUT              "hid/input"
     
    278277}
    279278
    280 static int gui_start(const char *app, const char *display_svc)
     279static int app_start(const char *app)
    281280{
    282281        printf("%s: Spawning %s\n", NAME, app);
     
    284283        task_id_t id;
    285284        task_wait_t wait;
    286         errno_t rc = task_spawnl(&id, &wait, app, app, display_svc, NULL);
     285        errno_t rc = task_spawnl(&id, &wait, app, app, NULL);
    287286        if (rc != EOK) {
    288287                oom_check(rc, app);
     
    472471                rc = display_server();
    473472                if (rc == EOK) {
    474                         gui_start("/app/barber", DISPLAY_SVC);
    475                         gui_start("/app/vlaunch", DISPLAY_SVC);
    476                         gui_start("/app/vterm", DISPLAY_SVC);
     473                        app_start("/app/barber");
     474                        app_start("/app/vlaunch");
     475                        app_start("/app/vterm");
    477476                }
    478477        }
Note: See TracChangeset for help on using the changeset viewer.