libguac/src/client.c
/**
 * Callback which is invoked by guac_client_supports_webp() for each user
 * associated with the given client, thus updating an overall support flag
 * describing the WebP support state for the client as a whole.
 *
 * @param user
 *     The user to check for WebP support.
 *
 * @param data
 *     Pointer to an int containing the current WebP support status for the
 *     client associated with the given user. This flag will be 0 if any user
 *     already checked has lacked WebP support, or 1 otherwise.
 *
 * @return
 *     Always NULL.
 */
Callback which is invoked by guac_client_supports_webp() for each user
associated with the given client, thus updating an overall support flag
describing the WebP support state for the client as a whole.

@param user
The user to check for WebP support.

@param data
Pointer to an int containing the current WebP support status for the
client associated with the given user. This flag will be 0 if any user
already checked has lacked WebP support, or 1 otherwise.

@return
Always NULL.
Callback which is invoked by guac_client_supports_webp () for each user associated with the given client thus updating an overall support flag describing the WebP support state for the client as a whole . @param user The user to check for WebP support . @param data Pointer to an int containing the current WebP support status for the client associated with the given user . This flag will be 0 if any user already checked has lacked WebP support or 1 otherwise . @return Always NULL .
static void* __webp_support_callback(guac_user* user, void* data) {
    int* webp_supported = (int*) data;
    if (*webp_supported)
        *webp_supported = guac_user_supports_webp(user);
    return NULL;
}
static void * __webp_support_callback ( guac_user * user , void * data ) { int * webp_supported = ( int * ) data ; if ( * webp_supported ) * webp_supported = guac_user_supports_webp ( user ) ; return NULL ; }
Callback which is invoked by guac_client_supports_webp() for each user
 associated with the given client, thus updating an overall support flag
 describing the WebP support state for the client as a whole.
Callback which is invoked by guac_client_supports_webp () for each user associated with the given client thus updating an overall support flag describing the WebP support state for the client as a whole .
/* Check whether current user supports WebP */