151
151
* control_stop_timer:
152
* @devname: Name of the device whose timer you want to stop.
152
* @mountpoint: the mountpoint corresponding to the device for which the
153
* timeout option has to be disabled.
154
155
* Implements the StopTimer method of com.ubuntu.Moutall01_Server
157
158
* This function is called for stopping a previously started timer for a
158
* @device. Stopping a timer has the effect that mountall would no longer
159
* expect the device to be ready within a previously registered stipulated
160
* time period. After this call, mountall will wait endlessly till the device
161
* becomes ready! Use this function only when you know that you might restart
162
* the timer later or that you really want to wait endlessly for the device to
159
* mountpoint. Stopping a timer has the effect that mountall would no longer
160
* expect the corresponding device to be ready within a previously registered
161
* stiplulated time period. After this call, mountall will wait endlessly till
162
* the device becomes ready. Use this function only when you know that you
163
* might restart the timer later or that you really want to wait endlessly
164
* till the device becomes available.
165
166
* Returns 0 on success and -1 on failure.
168
169
control_stop_timer (void *data,
169
170
NihDBusMessage *message,
171
const char *mountpoint)
173
nih_assert (devname != NULL);
174
nih_assert (mountpoint != NULL);
174
175
nih_assert (message != NULL);
176
return stop_dev_timer (devname);
177
return stop_dev_timer (mountpoint);
180
181
* control_restart_timer:
181
* @devname: Name of the device whose timer you want to stop.
182
* @mountpoint: the mountpoint corresponding to the device for which the
183
* timeout option has to be disabled.
183
185
* Implements the RestartTimer method of com.ubuntu.Moutall01_Server
186
188
* This function is called for restarting a previously stopped timer for a
187
* @device. After successfully restarting a timer, mountall will expect the
188
* device to become ready for mounting within the previously configured
189
* timeout or the default of 30 seconds.
189
* mountpoint. After successfully restarting a timer, mountall will expect the
190
* corresponding device to become ready for mounting within the previously
191
* configured timeout or the default of 30 seconds.
191
193
* Returns 0 on success and -1 on failure.
194
196
control_restart_timer (void *data,
195
197
NihDBusMessage *message,
198
const char *mountpoint)
199
nih_assert (devname != NULL);
201
nih_assert (mountpoint != NULL);
200
202
nih_assert (message != NULL);
202
return restart_dev_timer (devname);
204
return restart_dev_timer (mountpoint);