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


Ignore:
Timestamp:
2019-08-07T10:01:13Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
a097c50
Parents:
68ae40a
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-05 01:52:07)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 10:01:13)
Message:

sysman: Implement stopping units

Currently fails service monitoring because of taskman flawed event flags.
However, job closure works well.

File:
1 edited

Legend:

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

    r68ae40a red5367b  
    7070        job_t *job;
    7171
     72        /** Handle for IPC (immutable) */
    7273        unit_handle_t handle;
     74
     75        /** Unit type (immutable) */
    7376        unit_type_t type;
     77
     78        /** Unit name (immutable) */
    7479        char *name;
    7580
     
    110115        int (*start)(unit_t *);
    111116
     117        int (*stop)(unit_t *);
     118
    112119        void (*exposee_created)(unit_t *);
    113120
     
    124131                .destroy         = &PREFIX##_destroy,                          \
    125132                .start           = &PREFIX##_start,                            \
     133                .stop            = &PREFIX##_stop,                             \
    126134                .exposee_created = &PREFIX##_exposee_created,                  \
    127135                .fail            = &PREFIX##_fail                              \
     
    135143extern int unit_load(unit_t *, ini_configuration_t *, text_parse_t *);
    136144extern int unit_start(unit_t *);
     145extern int unit_stop(unit_t *);
    137146extern void unit_exposee_created(unit_t *);
    138147extern void unit_fail(unit_t *);
Note: See TracChangeset for help on using the changeset viewer.