Add parent client to resource.

This commit is contained in:
Michael Jumper 2012-09-20 23:56:25 -07:00
parent ddf705ad26
commit eabd17df64

View File

@ -39,6 +39,8 @@
#ifndef _GUAC_RESOURCE_H #ifndef _GUAC_RESOURCE_H
#define _GUAC_RESOURCE_H #define _GUAC_RESOURCE_H
#include "client.h"
/** /**
* Provides functions and structures required for handling resources. * Provides functions and structures required for handling resources.
* *
@ -94,6 +96,11 @@ struct guac_resource {
*/ */
guac_resource_reject_handler* reject_handler; guac_resource_reject_handler* reject_handler;
/**
* The client this resource was allocated for.
*/
guac_client* client;
/** /**
* Arbitrary data associated with this resource. * Arbitrary data associated with this resource.
*/ */