Changeset 5933
- Timestamp:
- 03/26/10 13:31:55 (3 years ago)
- Location:
- luci2/upsd
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
luci2/upsd/libupsd.c
r5826 r5933 125 125 } 126 126 127 int libupsd_reset(upsd_state_t *state) { 128 _libupsd_action_cleanup(state); 129 _libupsd_service_clear(state); 130 return _libupsd_service_init(state); 131 } 132 127 133 void libupsd_destroy(upsd_state_t *state) { 128 134 _libupsd_action_cleanup(state); -
luci2/upsd/upsd.h
r5807 r5933 330 330 331 331 /** 332 * libupsd_reset() - Resets an ups.d state 333 * @state: ups.d state 334 * 335 * Resets the current state removing everything but registered hooks. 336 * 337 * Returns an ups.d status code. 338 */ 339 int libupsd_reset(upsd_state_t *state); 340 341 /** 332 342 * libupsd_destroy() - Destroy an ups.d state. 333 343 * @state: ups.d state
