Changeset 4224ef7 in mainline for uspace/srv/sysman/sysman.c
- Timestamp:
- 2019-08-06T18:18:37Z (6 years ago)
- Children:
- e55741e
- Parents:
- dd5c623
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-05-11 16:50:40)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 18:18:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/sysman.c
rdd5c623 r4224ef7 160 160 /** Create and queue job for unit 161 161 * 162 * @param[in] callback callback must explicitly delete reference to job 162 * @param[in] callback (optional) callback must explicitly delete reference 163 * to job 163 164 */ 164 165 int sysman_queue_job(unit_t *unit, unit_state_t target_state, … … 170 171 } 171 172 172 job_add_ref(job); 173 sysman_object_observer(job, callback, callback_arg); 173 if (callback != NULL) { 174 job_add_ref(job); 175 sysman_object_observer(job, callback, callback_arg); 176 } 174 177 175 178 job_add_ref(job);
Note:
See TracChangeset
for help on using the changeset viewer.