Define the callback functions that should be implemented by a permissioning module.
More...
Define the callback functions that should be implemented by a permissioning module.
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
-
peer | Peer that the mapping is to be performed for |
orig | The original name |
destbuf | Buffer for the destination name |
destlen | Length of the destination buffer |
direction | Direction 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
-
peer | Peer that is requesting the object |
orig | The backend feed name of the object |
mapname | The mapped name of the object |
userptr | A 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: