libqmi-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define QMI_CID_NONE #define QMI_CID_BROADCAST #define QMI_CLIENT_DEVICE #define QMI_CLIENT_SERVICE #define QMI_CLIENT_CID #define QMI_CLIENT_VERSION_MAJOR #define QMI_CLIENT_VERSION_MINOR struct QmiClient; GObject * qmi_client_get_device (QmiClient *self
); GObject * qmi_client_peek_device (QmiClient *self
); QmiService qmi_client_get_service (QmiClient *self
); guint8 qmi_client_get_cid (QmiClient *self
); gboolean qmi_client_get_version (QmiClient *self
,guint *major
,guint *minor
); gboolean qmi_client_check_version (QmiClient *self
,guint major
,guint minor
); guint16 qmi_client_get_next_transaction_id (QmiClient *self
); void qmi_client_process_indication (QmiClient *self
,QmiMessage *message
);
GObject +----QmiClient +----QmiClientDms +----QmiClientNas +----QmiClientOma +----QmiClientPbm +----QmiClientPds +----QmiClientUim +----QmiClientWds +----QmiClientWms
"client-cid" guint : Read / Write "client-device" QmiDevice* : Read / Write "client-service" QmiService : Read / Write "client-version-major" guint : Read / Write "client-version-minor" guint : Read / Write
QmiClient is a generic type representing a QMI client for any kind of QmiService.
These objects are created by a QmiDevice with qmi_device_allocate_client()
,
and before completely disposing them qmi_device_release_client()
needs to be
called in order to release the unique client ID reserved.
struct QmiClient;
The QmiClient structure contains private data and should only be accessed using the provided API.
GObject * qmi_client_get_device (QmiClient *self
);
Get the QmiDevice associated with this QmiClient.
|
a QmiClient |
Returns : |
a GObject that must be freed with g_object_unref() . |
GObject * qmi_client_peek_device (QmiClient *self
);
Get the QmiDevice associated with this QmiClient, without increasing the reference count on the returned object.
QmiService qmi_client_get_service (QmiClient *self
);
Get the service being used by this QmiClient.
|
A QmiClient |
Returns : |
a QmiService. |
guint8 qmi_client_get_cid (QmiClient *self
);
Get the client ID of this QmiClient.
|
A QmiClient |
Returns : |
the client ID. |
gboolean qmi_client_get_version (QmiClient *self
,guint *major
,guint *minor
);
Get the version of the service handled by this QmiClient.
gboolean qmi_client_check_version (QmiClient *self
,guint major
,guint minor
);
Checks if the version of the service handled by this QmiClient is greater or equal than the given version.
guint16 qmi_client_get_next_transaction_id (QmiClient *self
);
Acquire the next transaction ID of this QmiClient. The internal transaction ID gets incremented.
|
A QmiClient |
Returns : |
the next transaction ID. |
void qmi_client_process_indication (QmiClient *self
,QmiMessage *message
);
"client-cid"
property"client-cid" guint : Read / Write
ID of the client registered into the QMI device.
Allowed values: <= 255
Default value: 0
"client-service"
property"client-service" QmiService : Read / Write
QMI service this client is using.
Default value: QMI_SERVICE_UNKNOWN
"client-version-major"
property"client-version-major" guint : Read / Write
Major version of the service handled by this client.
Default value: 0
"client-version-minor"
property"client-version-minor" guint : Read / Write
Minor version of the service handled by this client.
Default value: 0