Top |
QmiMessageNasGetCdmaPositionInfoOutput *
qmi_message_nas_get_cdma_position_info_output_ref
(QmiMessageNasGetCdmaPositionInfoOutput *self
);
Atomically increments the reference count of self
by one.
void
qmi_message_nas_get_cdma_position_info_output_unref
(QmiMessageNasGetCdmaPositionInfoOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
gboolean qmi_message_nas_get_cdma_position_info_output_get_result (QmiMessageNasGetCdmaPositionInfoOutput *self
,GError **error
);
Get the result of the QMI operation.
gboolean qmi_message_nas_get_cdma_position_info_output_get_cdma_position_info (QmiMessageNasGetCdmaPositionInfoOutput *self
,gint8 *cdma_position_info_ui_in_idle_mode
,GArray **cdma_position_info_basestations
,GError **error
);
Get the 'CDMA Position Info' field from self
.
self |
||
cdma_position_info_ui_in_idle_mode |
a placeholder for the output gint8, or |
|
cdma_position_info_basestations |
a placeholder for the output GArray of QmiMessageNasGetCdmaPositionInfoOutputCdmaPositionInfoBasestationsBasestation elements, or |
|
error |
Return location for error or |
void qmi_client_nas_get_cdma_position_info (QmiClientNas *self
,gpointer unused
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Get CDMA Position Info request to the device.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call qmi_client_nas_get_cdma_position_info_finish()
to get the result of the operation.
self |
a QmiClientNas. |
|
unused |
|
|
timeout |
maximum time to wait for the method to complete, in seconds. |
|
cancellable |
a GCancellable or |
|
callback |
a GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
user data to pass to |
QmiMessageNasGetCdmaPositionInfoOutput * qmi_client_nas_get_cdma_position_info_finish (QmiClientNas *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_nas_get_cdma_position_info()
.
self |
a QmiClientNas. |
|
res |
the GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
a QmiMessageNasGetCdmaPositionInfoOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_nas_get_cdma_position_info_output_unref()
.
typedef struct _QmiMessageNasGetCdmaPositionInfoOutput QmiMessageNasGetCdmaPositionInfoOutput;
The QmiMessageNasGetCdmaPositionInfoOutput structure contains private data and should only be accessed using the provided API.
typedef struct { QmiNasCdmaPilotType pilot_type; guint16 system_id; guint16 network_id; guint16 base_station_id; guint16 pilot_pn; guint16 pilot_strength; gint32 latitude; gint32 longitude; guint64 gps_time_in_milliseconds; } QmiMessageNasGetCdmaPositionInfoOutputCdmaPositionInfoBasestationsBasestation;
A QmiMessageNasGetCdmaPositionInfoOutputCdmaPositionInfoBasestationsBasestation struct.