Added new engine for universal event system.
Example:
gboolean mkdir_callback(const gchar *event_group, const gchar *event_name, gpointer init_data, gpointer event_data)
{
... /* some action for handle event */
return TRUE; /* got chance to run other callbacks for this event or */
return FALSE; /* break execution for other callbacks */
}
mc_event_add ("filesystem", "mkdir", mkdir_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", mkdir_log_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", third_callback, NULL, NULL);
/*
Last add - first run. In this case execution order is
* third_callback
* mkdir_log_callback
* mkdir_callback
if third_callback fuctions will return FALSE, then other callbacks
(mkdir_log_callback and mkdir_callback) never run!
*/
... /* some code */
/* for example, after pressing F7 */
mc_event_raise("filesystem", "mkdir", "some event_data... path to directory");
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-17 00:01:38 +02:00
|
|
|
SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget
|
2010-01-07 00:45:27 +02:00
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libmc.la
|
|
|
|
|
2010-01-21 15:06:15 +02:00
|
|
|
SUBLIB_includes = \
|
Added new engine for universal event system.
Example:
gboolean mkdir_callback(const gchar *event_group, const gchar *event_name, gpointer init_data, gpointer event_data)
{
... /* some action for handle event */
return TRUE; /* got chance to run other callbacks for this event or */
return FALSE; /* break execution for other callbacks */
}
mc_event_add ("filesystem", "mkdir", mkdir_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", mkdir_log_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", third_callback, NULL, NULL);
/*
Last add - first run. In this case execution order is
* third_callback
* mkdir_log_callback
* mkdir_callback
if third_callback fuctions will return FALSE, then other callbacks
(mkdir_log_callback and mkdir_callback) never run!
*/
... /* some code */
/* for example, after pressing F7 */
mc_event_raise("filesystem", "mkdir", "some event_data... path to directory");
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-17 00:01:38 +02:00
|
|
|
event.h \
|
2010-01-21 15:06:15 +02:00
|
|
|
filehighlight.h \
|
|
|
|
mcconfig.h \
|
|
|
|
search.h \
|
2010-02-02 17:08:14 +02:00
|
|
|
skin.h \
|
2010-01-21 15:31:29 +02:00
|
|
|
strescape.h \
|
2010-11-12 11:03:57 +03:00
|
|
|
strutil.h \
|
|
|
|
widget.h
|
2010-01-21 12:47:01 +02:00
|
|
|
|
|
|
|
SRC_mc_utils = \
|
|
|
|
utilunix.c \
|
|
|
|
unixcompat.h \
|
|
|
|
util.c util.h
|
|
|
|
|
|
|
|
|
2010-01-20 17:11:52 +02:00
|
|
|
libmc_la_SOURCES = \
|
2010-01-21 15:06:15 +02:00
|
|
|
$(SUBLIB_includes) \
|
2010-01-21 12:47:01 +02:00
|
|
|
$(SRC_mc_utils) \
|
2010-01-21 12:30:08 +02:00
|
|
|
fileloc.h \
|
2010-01-20 17:11:52 +02:00
|
|
|
fs.h \
|
2010-11-09 11:08:20 +03:00
|
|
|
hook.c hook.h \
|
2010-01-20 17:11:52 +02:00
|
|
|
glibcompat.c glibcompat.h \
|
2010-01-21 12:30:08 +02:00
|
|
|
global.h \
|
2010-11-18 11:39:09 +02:00
|
|
|
keybind.c keybind.h \
|
2010-06-09 16:24:30 +04:00
|
|
|
lock.c lock.h \
|
2010-11-09 21:50:25 +03:00
|
|
|
timefmt.c timefmt.h
|
2010-01-07 00:45:27 +02:00
|
|
|
|
2010-01-21 15:47:19 +02:00
|
|
|
if USE_MAINTAINER_MODE
|
|
|
|
libmc_la_SOURCES += logging.c logging.h
|
|
|
|
endif
|
|
|
|
|
2010-11-18 10:31:09 +02:00
|
|
|
if CHARSET
|
|
|
|
libmc_la_SOURCES += charsets.c charsets.h
|
|
|
|
endif
|
2010-01-20 17:11:52 +02:00
|
|
|
|
|
|
|
libmc_la_CFLAGS= $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
|
2010-01-07 00:45:27 +02:00
|
|
|
|
2010-01-07 01:31:17 +02:00
|
|
|
libmc_la_LIBADD = \
|
Added new engine for universal event system.
Example:
gboolean mkdir_callback(const gchar *event_group, const gchar *event_name, gpointer init_data, gpointer event_data)
{
... /* some action for handle event */
return TRUE; /* got chance to run other callbacks for this event or */
return FALSE; /* break execution for other callbacks */
}
mc_event_add ("filesystem", "mkdir", mkdir_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", mkdir_log_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", third_callback, NULL, NULL);
/*
Last add - first run. In this case execution order is
* third_callback
* mkdir_log_callback
* mkdir_callback
if third_callback fuctions will return FALSE, then other callbacks
(mkdir_log_callback and mkdir_callback) never run!
*/
... /* some code */
/* for example, after pressing F7 */
mc_event_raise("filesystem", "mkdir", "some event_data... path to directory");
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-17 00:01:38 +02:00
|
|
|
event/libmcevent.la \
|
2010-01-07 01:31:17 +02:00
|
|
|
filehighlight/libmcfilehighlight.la \
|
|
|
|
mcconfig/libmcconfig.la \
|
|
|
|
search/libsearch.la \
|
2010-01-21 14:17:26 +02:00
|
|
|
strutil/libmcstrutil.la \
|
2010-01-07 01:31:17 +02:00
|
|
|
skin/libmcskin.la \
|
2010-07-22 15:55:23 +04:00
|
|
|
tty/libmctty.la \
|
2010-11-10 21:45:56 +02:00
|
|
|
vfs/mc-vfs/libvfs-mc.la \
|
|
|
|
widget/libmcwidget.la
|