Menu

listener

hooks (5)
Majenko Technologies

Format: void * listener(char * name)

The name of an input pin is passed as a string. This should be matched up against known input pins in the device, and a pointer to a suitable function to handle input to that pin is returned. The pointer should be cast to void *.

The format of the function should be:

void inputCallback(struct device *dev, char *input, unsigned long long value)

where inputCallback is a name chosen by you.


Related

Wiki: hooks

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.