WDS Get Packet Statistics

## WDS Get Packet Statistics WDS Get Packet Statistics |

## Synopsis

                        QmiMessageWdsGetPacketStatisticsInput;
                        QmiMessageWdsGetPacketStatisticsOutput;

    QmiMessageWdsGetPacketStatisticsInput * qmi_message_wds_get_packet_statistics_input_new
                                                            (void);
    QmiMessageWdsGetPacketStatisticsInput * qmi_message_wds_get_packet_statistics_input_ref
                                                            (QmiMessageWdsGetPacketStatisticsInput *self);
    void                qmi_message_wds_get_packet_statistics_input_unref
                                                            (QmiMessageWdsGetPacketStatisticsInput *self);
    gboolean            qmi_message_wds_get_packet_statistics_input_get_mask
                                                            (QmiMessageWdsGetPacketStatisticsInput *self,
                                                             QmiWdsPacketStatisticsMaskFlag *mask,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_input_set_mask
                                                            (QmiMessageWdsGetPacketStatisticsInput *self,
                                                             QmiWdsPacketStatisticsMaskFlag mask,
                                                             GError **error);

    QmiMessageWdsGetPacketStatisticsOutput * qmi_message_wds_get_packet_statistics_output_ref
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self);
    void                qmi_message_wds_get_packet_statistics_output_unref
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_result
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_packets_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_packets_ok,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_packets_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_packets_ok,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_packets_error
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_packets_error,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_packets_error
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_packets_error,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_overflows
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_overflows,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_overflows
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_overflows,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *tx_bytes_ok,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *rx_bytes_ok,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_last_call_tx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *last_call_tx_bytes_ok,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_last_call_rx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *last_call_rx_bytes_ok,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_packets_dropped
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_packets_dropped,
                                                             GError **error);
    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_packets_dropped
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_packets_dropped,
                                                             GError **error);

    void                qmi_client_wds_get_packet_statistics
                                                            (QmiClientWds *self,
                                                             QmiMessageWdsGetPacketStatisticsInput *input,
                                                             guint timeout,
                                                             GCancellable *cancellable,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);
    QmiMessageWdsGetPacketStatisticsOutput * qmi_client_wds_get_packet_statistics_finish
                                                            (QmiClientWds *self,
                                                             GAsyncResult *res,
                                                             GError **error);

## Object Hierarchy

      GBoxed
       +----QmiMessageWdsGetPacketStatisticsInput

      GBoxed
       +----QmiMessageWdsGetPacketStatisticsOutput

## Description

## Details

### QmiMessageWdsGetPacketStatisticsInput

    typedef struct _QmiMessageWdsGetPacketStatisticsInput QmiMessageWdsGetPacketStatisticsInput;

The QmiMessageWdsGetPacketStatisticsInput structure contains private data and should only be accessed using the provided API.

### QmiMessageWdsGetPacketStatisticsOutput

    typedef struct _QmiMessageWdsGetPacketStatisticsOutput QmiMessageWdsGetPacketStatisticsOutput;

The QmiMessageWdsGetPacketStatisticsOutput structure contains private data and should only be accessed using the provided API.

### qmi_message_wds_get_packet_statistics_input_new ()

    QmiMessageWdsGetPacketStatisticsInput * qmi_message_wds_get_packet_statistics_input_new
                                                            (void);

Allocates a new QmiMessageWdsGetPacketStatisticsInput.

Returns : | the newly created QmiMessageWdsGetPacketStatisticsInput. The returned value should be freed with `qmi_message_wds_get_packet_statistics_input_unref()`.

### qmi_message_wds_get_packet_statistics_input_ref ()

    QmiMessageWdsGetPacketStatisticsInput * qmi_message_wds_get_packet_statistics_input_ref
                                                            (QmiMessageWdsGetPacketStatisticsInput *self);

Atomically increments the reference count of `self` by one.

`self` : | a QmiMessageWdsGetPacketStatisticsInput.
Returns : | the new reference to `self`.

### qmi_message_wds_get_packet_statistics_input_unref ()

    void                qmi_message_wds_get_packet_statistics_input_unref
                                                            (QmiMessageWdsGetPacketStatisticsInput *self);

Atomically decrements the reference count of `self` by one. If the reference count drops to 0, `self` is completely disposed.

`self` : | a QmiMessageWdsGetPacketStatisticsInput.

### qmi_message_wds_get_packet_statistics_input_get_mask ()

    gboolean            qmi_message_wds_get_packet_statistics_input_get_mask
                                                            (QmiMessageWdsGetPacketStatisticsInput *self,
                                                             QmiWdsPacketStatisticsMaskFlag *mask,
                                                             GError **error);

Get the 'Mask' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsInput.
`mask` : | a placeholder for the output QmiWdsPacketStatisticsMaskFlag, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_input_set_mask ()

    gboolean            qmi_message_wds_get_packet_statistics_input_set_mask
                                                            (QmiMessageWdsGetPacketStatisticsInput *self,
                                                             QmiWdsPacketStatisticsMaskFlag mask,
                                                             GError **error);

Set the 'Mask' field in the message.

`self` : | a QmiMessageWdsGetPacketStatisticsInput.
`mask` : | a QmiWdsPacketStatisticsMaskFlag.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if `value` was successfully set, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_ref ()

    QmiMessageWdsGetPacketStatisticsOutput * qmi_message_wds_get_packet_statistics_output_ref
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self);

Atomically increments the reference count of `self` by one.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
Returns : | the new reference to `self`.

### qmi_message_wds_get_packet_statistics_output_unref ()

    void                qmi_message_wds_get_packet_statistics_output_unref
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self);

Atomically decrements the reference count of `self` by one. If the reference count drops to 0, `self` is completely disposed.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.

### qmi_message_wds_get_packet_statistics_output_get_result ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_result
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             GError **error);

Get the result of the QMI operation.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the QMI operation succeeded, `FALSE` if `error` is set.

### qmi_message_wds_get_packet_statistics_output_get_tx_packets_ok ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_packets_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_packets_ok,
                                                             GError **error);

Get the 'Tx Packets Ok' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`tx_packets_ok` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_rx_packets_ok ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_packets_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_packets_ok,
                                                             GError **error);

Get the 'Rx Packets Ok' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`rx_packets_ok` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_tx_packets_error ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_packets_error
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_packets_error,
                                                             GError **error);

Get the 'Tx Packets Error' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`tx_packets_error` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_rx_packets_error ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_packets_error
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_packets_error,
                                                             GError **error);

Get the 'Rx Packets Error' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`rx_packets_error` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_tx_overflows ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_overflows
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_overflows,
                                                             GError **error);

Get the 'Tx Overflows' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`tx_overflows` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_rx_overflows ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_overflows
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_overflows,
                                                             GError **error);

Get the 'Rx Overflows' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`rx_overflows` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_tx_bytes_ok ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *tx_bytes_ok,
                                                             GError **error);

Get the 'Tx Bytes Ok' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`tx_bytes_ok` : | a placeholder for the output guint64, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_rx_bytes_ok ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *rx_bytes_ok,
                                                             GError **error);

Get the 'Rx Bytes Ok' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`rx_bytes_ok` : | a placeholder for the output guint64, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_last_call_tx_bytes_ok ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_last_call_tx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *last_call_tx_bytes_ok,
                                                             GError **error);

Get the 'Last Call Tx Bytes Ok' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`last_call_tx_bytes_ok` : | a placeholder for the output guint64, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_last_call_rx_bytes_ok ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_last_call_rx_bytes_ok
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint64 *last_call_rx_bytes_ok,
                                                             GError **error);

Get the 'Last Call Rx Bytes Ok' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`last_call_rx_bytes_ok` : | a placeholder for the output guint64, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_tx_packets_dropped ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_tx_packets_dropped
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *tx_packets_dropped,
                                                             GError **error);

Get the 'Tx Packets Dropped' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`tx_packets_dropped` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_message_wds_get_packet_statistics_output_get_rx_packets_dropped ()

    gboolean            qmi_message_wds_get_packet_statistics_output_get_rx_packets_dropped
                                                            (QmiMessageWdsGetPacketStatisticsOutput *self,
                                                             guint32 *rx_packets_dropped,
                                                             GError **error);

Get the 'Rx Packets Dropped' field from `self`.

`self` : | a QmiMessageWdsGetPacketStatisticsOutput.
`rx_packets_dropped` : | a placeholder for the output guint32, or `NULL` if not required.
`error` : | Return location for error or `NULL`.
Returns : | `TRUE` if the field is found, `FALSE` otherwise.

### qmi_client_wds_get_packet_statistics ()

    void                qmi_client_wds_get_packet_statistics
                                                            (QmiClientWds *self,
                                                             QmiMessageWdsGetPacketStatisticsInput *input,
                                                             guint timeout,
                                                             GCancellable *cancellable,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);

Asynchronously sends a Get Packet Statistics 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_wds_get_packet_statistics_finish()` to get the result of the operation.

`self` : | a QmiClientWds.
`input` : | a QmiMessageWdsGetPacketStatisticsInput.
`timeout` : | maximum time to wait for the method to complete, in seconds.
`cancellable` : | a GCancellable or `NULL`.
`callback` : | a GAsyncReadyCallback to call when the request is satisfied.
`user_data` : | user data to pass to `callback`.

### qmi_client_wds_get_packet_statistics_finish ()

    QmiMessageWdsGetPacketStatisticsOutput * qmi_client_wds_get_packet_statistics_finish
                                                            (QmiClientWds *self,
                                                             GAsyncResult *res,
                                                             GError **error);

Finishes an async operation started with `qmi_client_wds_get_packet_statistics()`.

`self` : | a QmiClientWds.
`res` : | the GAsyncResult obtained from the GAsyncReadyCallback passed to `qmi_client_wds_get_packet_statistics()`.
`error` : | Return location for error or `NULL`.
Returns : | a QmiMessageWdsGetPacketStatisticsOutput, or `NULL` if `error` is set. The returned value should be freed with `qmi_message_wds_get_packet_statistics_output_unref()`.