GUAC-1389: Explain significance of the type-punning union.
This commit is contained in:
parent
76e3b2ebb8
commit
ea1a34083c
@ -529,6 +529,8 @@ int guac_client_load_plugin(guac_client* client, const char* protocol) {
|
|||||||
char protocol_lib[GUAC_PROTOCOL_LIBRARY_LIMIT] =
|
char protocol_lib[GUAC_PROTOCOL_LIBRARY_LIMIT] =
|
||||||
GUAC_PROTOCOL_LIBRARY_PREFIX;
|
GUAC_PROTOCOL_LIBRARY_PREFIX;
|
||||||
|
|
||||||
|
/* Type-pun for the sake of dlsym() - cannot typecast a void* to a function
|
||||||
|
* pointer otherwise */
|
||||||
union {
|
union {
|
||||||
guac_client_init_handler* client_init;
|
guac_client_init_handler* client_init;
|
||||||
void* obj;
|
void* obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user