Changeset 241f1985 in mainline for uspace/srv/sysman/sysman.c
- Timestamp:
- 2019-08-31T10:45:17Z (6 years ago)
- Children:
- 102f641
- Parents:
- f92b315
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-23 22:04:34)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-31 10:45:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/sysman.c
rf92b315 r241f1985 90 90 } 91 91 92 static size_t observed_objects_ht_key_hash( void *key)92 static size_t observed_objects_ht_key_hash(const void *key) 93 93 { 94 94 void *object = *(void **) key; … … 96 96 } 97 97 98 static bool observed_objects_ht_key_equal( void *key, const ht_link_t *item)98 static bool observed_objects_ht_key_equal(const void *key, const ht_link_t *item) 99 99 { 100 100 void *object = *(void **)key; … … 213 213 * @return EOK on successfully queued job 214 214 */ 215 int sysman_run_job(unit_t *unit, unit_state_t target_state, int flags,215 errno_t sysman_run_job(unit_t *unit, unit_state_t target_state, int flags, 216 216 callback_handler_t callback, void *callback_arg) 217 217 { … … 279 279 * @return ENOMEM 280 280 */ 281 int sysman_object_observer(void *object, callback_handler_t handler, void *data)282 { 283 int rc;281 errno_t sysman_object_observer(void *object, callback_handler_t handler, void *data) 282 { 283 errno_t rc; 284 284 observed_object_t *observed_object = NULL; 285 285 observed_object_t *new_observed_object = NULL; … … 314 314 } 315 315 316 int sysman_move_observers(void *src_object, void *dst_object)316 errno_t sysman_move_observers(void *src_object, void *dst_object) 317 317 { 318 318 ht_link_t *src_link = hash_table_find(&observed_objects, &src_object);
Note:
See TracChangeset
for help on using the changeset viewer.