summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eolian_database.h
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-16 15:41:24 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-16 15:41:57 +0100
commit927bcfd60ab21a50d674deb200b07e59e9796df8 (patch)
treeb929a0985d0fc68092514ce392ec8a658292cf6c /src/lib/eolian/eolian_database.h
parent2705ea853108a64edc9264c8e5d4c79e55aea001 (diff)
eolian: initial API for a new panic mechanism
This will be used to handle unrecoverable errors. For robustness, you will be able to set a custom panic callback, jump and try to recover manually.
Diffstat (limited to 'src/lib/eolian/eolian_database.h')
-rw-r--r--src/lib/eolian/eolian_database.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index 28ff787..813f3f5 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -1,6 +1,8 @@
1#ifndef __EOLIAN_DATABASE_H 1#ifndef __EOLIAN_DATABASE_H
2#define __EOLIAN_DATABASE_H 2#define __EOLIAN_DATABASE_H
3 3
4#include <setjmp.h>
5
4#include <Eolian.h> 6#include <Eolian.h>
5 7
6extern int _eolian_log_dom; 8extern int _eolian_log_dom;
@@ -49,6 +51,10 @@ struct _Eolian_State
49{ 51{
50 Eolian_Unit unit; 52 Eolian_Unit unit;
51 53
54 Eolian_Panic_Cb panic;
55 Eina_Stringshare *panic_msg;
56 jmp_buf jmp_env;
57
52 Eina_Hash *filenames_eo; /* filename to full path mapping */ 58 Eina_Hash *filenames_eo; /* filename to full path mapping */
53 Eina_Hash *filenames_eot; 59 Eina_Hash *filenames_eot;
54 60