Papageno
An Advanced Pattern Matching Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ppg_context.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_CONTEXT_H
18 #define PPG_CONTEXT_H
19 
26 void* ppg_context_create(void);
27 
35 void ppg_context_destroy(void *context);
36 
37 #if !PPG_DISABLE_CONTEXT_SWITCHING
38 
44 void* ppg_global_set_current_context(void *context);
45 
51 
52 #endif
53 
54 #endif
void * ppg_global_get_current_context(void)
Retreives the current context.
void * ppg_global_set_current_context(void *context)
Sets a new current context.
void ppg_context_destroy(void *context)
Destroys a papageno context.
void * ppg_context_create(void)
Creates a new papageno context.