Papageno
An Advanced Pattern Matching Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ppg_signal_callback.h
Go to the documentation of this file.
1 /* Copyright 2017 noseglasses <shinynoseglasses@gmail.com>
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef PPG_SIGNAL_CALLBACK_H
18 #define PPG_SIGNAL_CALLBACK_H
19 
22 #include "ppg_signals.h"
23 
29 typedef void (*PPG_Signal_Callback_Fun)(PPG_Signal_Id signal_id, void *user_data);
30 
34 typedef struct {
36  void * user_data;
38 
39 #endif
void * user_data
Optional user data that is passed to the callback when called.
Definition: ppg_signal_callback.h:36
The PPG_Signal_Callback_Fun struct groups use callback information in an object oriented fashion (fun...
Definition: ppg_signal_callback.h:34
PPG_Signal_Callback_Fun func
The callback function.
Definition: ppg_signal_callback.h:35
void(* PPG_Signal_Callback_Fun)(PPG_Signal_Id signal_id, void *user_data)
Function type of signal callback functions.
Definition: ppg_signal_callback.h:29