diff src/audacious/interface.h @ 4666:742abc97b3ab

Add preliminary Interface API.
author William Pitcock <nenolod@atheme.org>
date Sun, 29 Jun 2008 00:38:08 -0500
parents
children 48cdebc174ef
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/audacious/interface.h	Sun Jun 29 00:38:08 2008 -0500
@@ -0,0 +1,43 @@
+/*
+ * Audacious2
+ * Copyright (c) 2008 William Pitcock <nenolod@dereferenced.org>
+ *
+ * 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; under version 3 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, see <http://www.gnu.org/licenses>.
+ *
+ * The Audacious team does not consider modular code linking to
+ * Audacious or using our public API to be a derived work.
+ */
+
+/*
+ * This is the Interface API.
+ *
+ * Everything here is like totally subject to change.
+ *     --nenolod
+ */
+
+#ifndef __AUDACIOUS2_INTERFACE_H__
+#define __AUDACIOUS2_INTERFACE_H__
+
+typedef struct {
+	gchar *id;		/* simple ID like 'skinned' */
+	gchar *desc;		/* description like 'Skinned Interface' */
+	gboolean (*init)(void); /* init UI */
+	gboolean (*fini)(void); /* shutdown UI */
+} Interface;
+
+void interface_register(Interface *i);
+void interface_deregister(Interface *i);
+void interface_run(Interface *i);
+Interface *interface_get(gchar *id);
+
+#endif