1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
/* -*- Mode: C ; c-basic-offset: 2 -*- */
/*****************************************************************************
*
* This file is part of zynjacku
*
* Copyright (C) 2006,2007,2008,2009 Nedko Arnaudov <nedko@arnaudov.name>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*****************************************************************************/
#ifndef ENGINE_H__512BF192_2626_4759_839B_47B7780A971B__INCLUDED
#define ENGINE_H__512BF192_2626_4759_839B_47B7780A971B__INCLUDED
G_BEGIN_DECLS
#define ZYNJACKU_ENGINE_TYPE (zynjacku_engine_get_type())
#define ZYNJACKU_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ZYNJACKU_ENGINE_TYPE, ZynjackuEngine))
#define ZYNJACKU_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ZYNJACKU_ENGINE_TYPE, ZynjackuEngineClass))
#define ZYNJACKU_IS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ZYNJACKU_ENGINE_TYPE))
#define ZYNJACKU_IS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ZYNJACKU_ENGINE_TYPE))
#define ZYNJACKU_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ZYNJACKU_ENGINE_TYPE, ZynjackuEngineClass))
#define ZYNJACKU_TYPE_ENGINE ZYNJACKU_ENGINE_TYPE
typedef struct _ZynjackuEngine ZynjackuEngine;
typedef struct _ZynjackuEngineClass ZynjackuEngineClass;
struct _ZynjackuEngine {
GObject parent;
/* instance members */
};
struct _ZynjackuEngineClass {
GObjectClass parent;
/* class members */
};
/* used by ZYNJACKU_ENGINE_TYPE */
GType zynjacku_engine_get_type();
gboolean
zynjacku_engine_start_jack(
ZynjackuEngine * obj_ptr,
const char * client_name);
void
zynjacku_engine_stop_jack(
ZynjackuEngine * obj_ptr);
guint
zynjacku_engine_get_sample_rate(
ZynjackuEngine * engine_obj_ptr);
void
zynjacku_engine_ui_run(
ZynjackuEngine * engine_obj_ptr);
gboolean
zynjacku_engine_get_midi_activity(
ZynjackuEngine * engine_obj_ptr);
const gchar *
zynjacku_get_version();
const gchar *
zynjacku_engine_get_supported_feature(
ZynjackuEngine * engine_obj_ptr,
guint index);
gboolean
zynjacku_engine_construct_plugin(
ZynjackuEngine * engine_obj_ptr,
ZynjackuPlugin * plugin_obj_ptr);
G_END_DECLS
#endif /* #ifndef ENGINE_H__512BF192_2626_4759_839B_47B7780A971B__INCLUDED */
|