xbps_handle: constify xbps_xxx_cb_data argument.

This commit is contained in:
Juan RP
2014-09-06 09:46:03 +02:00
parent 57a7967f0d
commit 05e7a59f03
7 changed files with 16 additions and 16 deletions

View File

@ -48,7 +48,7 @@
*
* This header documents the full API for the XBPS Library.
*/
#define XBPS_API_VERSION "20140905"
#define XBPS_API_VERSION "20140906"
#ifndef XBPS_VERSION
#define XBPS_VERSION "UNSET"
@ -538,7 +538,7 @@ struct xbps_handle {
* Pointer to the supplifed function callback to be used
* in the XBPS possible states.
*/
int (*state_cb)(struct xbps_state_cb_data *, void *);
int (*state_cb)(const struct xbps_state_cb_data *, void *);
/**
* @var state_cb_data
*
@ -550,7 +550,7 @@ struct xbps_handle {
* Pointer to the supplied function callback to be used in
* xbps_unpack_binary_pkg().
*/
void (*unpack_cb)(struct xbps_unpack_cb_data *, void *);
void (*unpack_cb)(const struct xbps_unpack_cb_data *, void *);
/**
* @var unpack_cb_data
*
@ -562,7 +562,7 @@ struct xbps_handle {
* Pointer to the supplied function callback to be used in
* xbps_fetch_file().
*/
void (*fetch_cb)(struct xbps_fetch_cb_data *, void *);
void (*fetch_cb)(const struct xbps_fetch_cb_data *, void *);
/**
* @var fetch_cb_data
*