Skip to content

Commit

Permalink
fsm: export ni_ifworker_can_delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 10, 2014
1 parent 2e22a15 commit ce196d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions include/wicked/fsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,10 @@ ni_ifworker_is_factory_device(ni_ifworker_t *w)
w->device_api.factory_method);
}

static inline ni_bool_t
ni_ifworker_can_delete(const ni_ifworker_t *w)
{
return !!ni_dbus_object_get_service_for_method(w->object, "deleteDevice");
}

#endif /* __CLIENT_FSM_H__ */
6 changes: 0 additions & 6 deletions src/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3538,12 +3538,6 @@ ni_ifworker_call_device_factory(ni_fsm_t *fsm, ni_ifworker_t *w, ni_fsm_transiti
return 0;
}

static inline ni_bool_t
ni_ifworker_can_delete(const ni_ifworker_t *w)
{
return !!ni_dbus_object_get_service_for_method(w->object, "deleteDevice");
}

/*
* Finite state machine
*/
Expand Down

0 comments on commit ce196d0

Please sign in to comment.