Transformer SDK For C  8.0.3.342099-79b6f512
_authfuncs Struct Reference

Define the callback functions that should be implemented by a permissioning module. More...

Data Fields

int(* map_object )(int peer, char *orig, char *destbuf, int destlen, authdirection_t direction)
 
int(* request_object )(int peer, char *orig, char *mapname, void **userptr)
 

Detailed Description

Define the callback functions that should be implemented by a permissioning module.

Field Documentation

int(* _authfuncs::map_object) (int peer, char *orig, char *destbuf, int destlen, authdirection_t direction)

Function called to map an object between feed and output names

Parameters
peerPeer that the mapping is to be performed for
origThe original name
destbufBuffer for the destination name
destlenLength of the destination buffer
directionDirection in which the mapping is to take place
Return values
FALSE- mapping failed
TRUE- mapping succeeded

If this function returns FALSE then the Transformer uses orig as the destination name

int(* _authfuncs::request_object) (int peer, char *orig, char *mapname, void **userptr)

Function called when a peer requests an object

Parameters
peerPeer that is requesting the object
origThe backend feed name of the object
mapnameThe mapped name of the object
userptrA place to lodge any authentication specific information
Return values
FALSE- The peer is not permissioned to view this object
TRUE- The peer is permissioned to view this object

The documentation for this struct was generated from the following file:

Generated on Wed Dec 4 2024 17:41:37 for Transformer SDK For C