![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "lua/call.h"
#include "control/control.h"
#include "lua/lua.h"
#include <glib-unix.h>
#include <glib.h>
#include <stdlib.h>
#include <sys/select.h>
Data Structures | |
struct | async_call_data |
struct | string_call_data |
struct | gtk_wrap_communication |
Typedefs | |
typedef struct gtk_wrap_communication | gtk_wrap_communication |
Functions | |
int | dt_lua_check_print_error (lua_State *L, int result) |
static int | create_backtrace (lua_State *L) |
int | dt_lua_treated_pcall (lua_State *L, int nargs, int nresults) |
static int | save_thread (lua_State *L) |
static lua_State * | get_thread (lua_State *L, int thread_num) |
static void | drop_thread (lua_State *L, int thread_num) |
static void | run_async_thread_main (gpointer data, gpointer user_data) |
static void | run_async_thread (lua_State *L, int thread_num) |
static gboolean | end_job_prepare (GSource *source, gint *timeout) |
static gboolean | end_job_dispatch (GSource *source, GSourceFunc callback, gpointer user_data) |
static void | end_job_init () |
static gboolean | stacked_job_prepare (GSource *source, gint *timeout) |
static gboolean | stacked_job_dispatch (GSource *source, GSourceFunc callback, gpointer user_data) |
static void | stacked_job_finalize (GSource *source) |
static void | stacked_job_init () |
static gboolean | alien_job_prepare (GSource *source, gint *timeout) |
static void | alien_job_destroy (void *data_ptr) |
static gboolean | alien_job_dispatch (GSource *source, GSourceFunc callback, gpointer user_data) |
static void | alien_job_finalize (GSource *source) |
static void | alien_job_init () |
static gboolean | string_job_prepare (GSource *source, gint *timeout) |
static void | string_data_destroy (string_call_data *data) |
static gboolean | string_job_dispatch (GSource *source, GSourceFunc callback, gpointer user_data) |
static void | string_job_finalize (GSource *source) |
static void | string_job_init () |
void | dt_lua_async_call_internal (const char *function, int line, lua_State *L, int nargs, int nresults, dt_lua_finish_callback cb, void *data) |
void | dt_lua_async_call_alien_internal (const char *call_function, int line, lua_CFunction pusher, int nresults, dt_lua_finish_callback cb, void *cb_data, dt_lua_async_call_arg_type arg_type,...) |
void | dt_lua_async_call_string_internal (const char *function, int line, const char *lua_string, int nresults, dt_lua_finish_callback cb, void *cb_data) |
static gpointer | lua_thread_main (gpointer data) |
static int | dispatch_cb (lua_State *L) |
static int | ending_cb (lua_State *L) |
static int | execute_cb (lua_State *L) |
static int | sleep_cb (lua_State *L) |
static int | read_cb (lua_State *L) |
gboolean | dt_lua_gtk_wrap_callback (gpointer data) |
static int | gtk_wrap (lua_State *L) |
void | dt_lua_gtk_wrap_internal (lua_State *L, const char *function, int line) |
int | dt_lua_init_call (lua_State *L) |
Variables | |
static GSourceFuncs | end_job_funcs |
static GSourceFuncs | stacked_job_funcs |
static GSourceFuncs | alien_job_funcs |
static GSourceFuncs | string_job_funcs |
typedef struct gtk_wrap_communication gtk_wrap_communication |
References async_call_data::extra, LUA_ASYNC_DONE, LUA_ASYNC_TYPEID, LUA_ASYNC_TYPEID_WITH_FREE, LUA_ASYNC_TYPENAME, and LUA_ASYNC_TYPENAME_WITH_FREE.
Referenced by alien_job_dispatch(), and alien_job_finalize().
|
static |
References alien_job_destroy(), async_call_data::cb, async_call_data::cb_data, darktable, async_call_data::extra, LUA_ASYNC_DONE, LUA_ASYNC_TYPEID, LUA_ASYNC_TYPEID_WITH_FREE, LUA_ASYNC_TYPENAME, LUA_ASYNC_TYPENAME_WITH_FREE, darktable_t::lua_state, async_call_data::nresults, async_call_data::pusher, run_async_thread(), save_thread(), and TRUE.
|
static |
References alien_job_destroy(), darktable, and darktable_t::lua_state.
|
static |
References alien_job_funcs, darktable, and darktable_t::lua_state.
Referenced by dt_lua_init_call().
|
static |
References darktable, and darktable_t::lua_state.
|
static |
Referenced by dt_lua_treated_pcall(), and run_async_thread_main().
|
static |
References dt_lua_async_call.
Referenced by dt_lua_init_call().
Referenced by run_async_thread_main(), and string_job_dispatch().
void dt_lua_async_call_alien_internal | ( | const char * | call_function, |
int | line, | ||
lua_CFunction | pusher, | ||
int | nresults, | ||
dt_lua_finish_callback | cb, | ||
void * | cb_data, | ||
dt_lua_async_call_arg_type | arg_type, | ||
... | |||
) |
References async_call_data::cb, async_call_data::cb_data, darktable, DT_DEBUG_LUA, dt_print(), async_call_data::extra, LUA_ASYNC_DONE, LUA_ASYNC_TYPEID, LUA_ASYNC_TYPEID_WITH_FREE, LUA_ASYNC_TYPENAME, LUA_ASYNC_TYPENAME_WITH_FREE, darktable_t::lua_state, async_call_data::nresults, and async_call_data::pusher.
void dt_lua_async_call_internal | ( | const char * | function, |
int | line, | ||
lua_State * | L, | ||
int | nargs, | ||
int | nresults, | ||
dt_lua_finish_callback | cb, | ||
void * | data | ||
) |
References darktable, DT_DEBUG_LUA, dt_print(), darktable_t::lua_state, and save_thread().
void dt_lua_async_call_string_internal | ( | const char * | function, |
int | line, | ||
const char * | lua_string, | ||
int | nresults, | ||
dt_lua_finish_callback | cb, | ||
void * | cb_data | ||
) |
int dt_lua_check_print_error | ( | lua_State * | L, |
int | result | ||
) |
References darktable, DT_DEBUG_LUA, dt_print(), and darktable_t::unmuted.
Referenced by dt_lua_treated_pcall(), run_async_thread_main(), run_early_script(), and string_job_dispatch().
gboolean dt_lua_gtk_wrap_callback | ( | gpointer | data | ) |
References gtk_wrap_communication::end_cond, gtk_wrap_communication::end_mutex, gtk_wrap_communication::L, and gtk_wrap_communication::retval.
Referenced by gtk_wrap().
References gtk_wrap().
int dt_lua_init_call | ( | lua_State * | L | ) |
References alien_job_init(), darktable, dispatch_cb(), dt_lua_init_singleton(), dt_lua_push_darktable_lib(), dt_lua_type_member_common(), dt_lua_type_register_const_type(), end_job_init(), ending_cb(), execute_cb(), darktable_t::lua_state, lua_thread_main(), read_cb(), sleep_cb(), stacked_job_init(), and string_job_init().
int dt_lua_treated_pcall | ( | lua_State * | L, |
int | nargs, | ||
int | nresults | ||
) |
References create_backtrace(), and dt_lua_check_print_error().
Referenced by _guides_draw_callback(), _guides_gui_callback(), autotype_next(), dt_lua_event_keyed_trigger(), dt_lua_event_multiinstance_trigger(), dt_lua_event_trigger(), dt_lua_widget_trigger_callback(), finalize_store_wrapper(), initialize_store_wrapper(), register_pref(), register_storage(), and store_wrapper().
|
static |
References darktable, and darktable_t::lua_state.
|
static |
References darktable, end_job_funcs, and darktable_t::lua_state.
Referenced by dt_lua_init_call().
|
static |
References darktable, and darktable_t::lua_state.
|
static |
References darktable, and darktable_t::lua_state.
Referenced by dt_lua_init_call().
|
static |
Referenced by dt_lua_init_call().
Referenced by run_async_thread_main().
|
static |
|
static |
References darktable, darktable_t::lua_state, and run_async_thread_main().
Referenced by dt_lua_init_call().
|
static |
Referenced by dt_lua_init_call().
References darktable, and darktable_t::lua_state.
Referenced by alien_job_dispatch(), stacked_job_dispatch(), and string_job_dispatch().
|
static |
References create_backtrace(), darktable, drop_thread(), DT_DEBUG_LUA, dt_lua_check_print_error(), dt_print(), get_thread(), and darktable_t::lua_state.
Referenced by lua_thread_main().
|
static |
Referenced by alien_job_dispatch(), dt_lua_async_call_internal(), and string_job_dispatch().
|
static |
Referenced by dt_lua_init_call().
|
static |
References darktable, darktable_t::lua_state, run_async_thread(), and TRUE.
|
static |
References darktable, and darktable_t::lua_state.
|
static |
References darktable, darktable_t::lua_state, and stacked_job_funcs.
Referenced by dt_lua_init_call().
|
static |
References darktable, and darktable_t::lua_state.
|
static |
References string_call_data::function.
Referenced by string_job_dispatch(), and string_job_finalize().
|
static |
|
static |
References darktable, darktable_t::lua_state, and string_data_destroy().
|
static |
References darktable, darktable_t::lua_state, and string_job_funcs.
Referenced by dt_lua_init_call().
|
static |
References darktable, and darktable_t::lua_state.
|
static |
Referenced by alien_job_init().
|
static |
Referenced by end_job_init().
|
static |
Referenced by stacked_job_init().
|
static |
Referenced by string_job_init().