~ubuntu-branches/ubuntu/precise/mountall/precise

« back to all changes in this revision

Viewing changes to src/control.h

  • Committer: Surbhi Palande
  • Date: 2011-07-15 06:58:31 UTC
  • mto: This revision was merged to the branch mainline in revision 372.
  • Revision ID: surbhi.palande@canonical.com-20110715065831-jga2lw83obvg28e6
Changed the interface to stop/restart timers to use a mountpoint rather than
the device name. This is useful in situations where the device mentioned in
/etc/fstab is not the device used for mounting because of the change mount
device interface. The mountpoint remains constant in all cases and is also
easier to use that specifying a device with uuids for eg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
int control_server_open (void);
25
25
int control_stop_timer  (void *data, NihDBusMessage *message, 
26
 
                                                const char *devname)
 
26
                                                const char *mountpoint)
27
27
        __attribute__ ((warn_unused_result));
28
28
int control_restart_timer (void *data, NihDBusMessage *message,
29
 
                                                const char *devname)
 
29
                                                const char *mountpoint)
30
30
        __attribute__ ((warn_unused_result));
31
31
int control_change_mount_device (void *data, NihDBusMessage *message, 
32
32
                                const char *devname, const char *path)
34
34
int control_get_version (void *data, NihDBusMessage *message, 
35
35
                                                char **value)
36
36
        __attribute__ ((warn_unused_result));
37
 
int control_get_mount_devices (void *data, NihDBusMessage *message,
38
 
                                char ***devs, char ***mntpoints)
39
 
        __attribute__ ((warn_unused_result));