2008-02-20 06:52:05 -06:00
|
|
|
/*
|
|
|
|
* mooapp/mooappinput.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2008-02-20 06:52:05 -06:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* This file is part of medit. medit is free software; you can
|
|
|
|
* redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
2008-02-20 06:52:05 -06:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2008-02-20 06:52:05 -06:00
|
|
|
*/
|
|
|
|
|
2008-05-11 01:36:25 -05:00
|
|
|
#ifndef MOO_APP_INPUT_H
|
|
|
|
#define MOO_APP_INPUT_H
|
2008-02-20 06:52:05 -06:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
typedef void (*MooAppInputCallback) (char cmd,
|
|
|
|
const char *data,
|
|
|
|
guint len,
|
|
|
|
gpointer cb_data);
|
|
|
|
|
2008-04-01 11:02:42 -05:00
|
|
|
void _moo_app_input_start (const char *name,
|
2008-02-20 06:52:05 -06:00
|
|
|
gboolean bind_default,
|
|
|
|
MooAppInputCallback callback,
|
|
|
|
gpointer callback_data);
|
|
|
|
void _moo_app_input_shutdown (void);
|
|
|
|
gboolean _moo_app_input_running (void);
|
|
|
|
|
2008-04-01 11:02:42 -05:00
|
|
|
gboolean _moo_app_input_send_msg (const char *name,
|
2008-02-20 06:52:05 -06:00
|
|
|
const char *data,
|
|
|
|
gssize len);
|
|
|
|
void _moo_app_input_broadcast (const char *header,
|
|
|
|
const char *data,
|
|
|
|
gssize len);
|
|
|
|
const char *_moo_app_input_get_path (void);
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2008-05-11 01:36:25 -05:00
|
|
|
#endif /* MOO_APP_INPUT_H */
|