location: rework to allow multiple location sources
Location sources can now be enabled or disabled by using the mask of sources given in Setup() (similar previous Enable()).
This commit is contained in:
@@ -43,6 +43,7 @@ struct _MMIfaceModemLocation {
|
||||
|
||||
/* Enable location gathering (async) */
|
||||
void (* enable_location_gathering) (MMIfaceModemLocation *self,
|
||||
MMModemLocationSource source,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*enable_location_gathering_finish) (MMIfaceModemLocation *self,
|
||||
@@ -51,6 +52,7 @@ struct _MMIfaceModemLocation {
|
||||
|
||||
/* Disable location gathering (async) */
|
||||
void (* disable_location_gathering) (MMIfaceModemLocation *self,
|
||||
MMModemLocationSource source,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*disable_location_gathering_finish) (MMIfaceModemLocation *self,
|
||||
|
Reference in New Issue
Block a user