v0.1.0
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
task_iface.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** gmio
3 ** Copyright Fougue (24 Jun. 2016)
4 ** contact@fougue.pro
5 **
6 ** This software is a reusable library whose purpose is to provide complete
7 ** I/O support for various CAD file formats (eg. STL)
8 **
9 ** This software is governed by the CeCILL-B license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-B
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html".
14 ****************************************************************************/
15 
23 #ifndef GMIO_TASK_IFACE_H
24 #define GMIO_TASK_IFACE_H
25 
26 #include "global.h"
27 
30 {
33  void* cookie;
34 
42 
51  void* cookie, intmax_t value, intmax_t max_value);
52 };
53 
54 #endif /* GMIO_TASK_IFACE_H */
55 
void * cookie
Optional opaque pointer on a user task object, passed as first argument to hook functions.
Definition: task_iface.h:33
Fundamental global declarations, included by almost all other header/source files.
bool(* func_is_stop_requested)(void *cookie)
Optional pointer on a function that says if the currently running task must stop. ...
Definition: task_iface.h:41
void(* func_handle_progress)(void *cookie, intmax_t value, intmax_t max_value)
Optional pointer on a function that is called anytime some new progress was done. ...
Definition: task_iface.h:50
Defines an interface through which a task can be controlled.
Definition: task_iface.h:29
Fougue © 2016