]> Dogcows Code - chaz/openbox/blobdiff - obt/link.h
Remove some evil tabs
[chaz/openbox] / obt / link.h
index b0193297f39c75717c0f9af6b932e6b7574e8be0..29147d89a5f4019386004cc39db97bfa5854044b 100644 (file)
@@ -26,26 +26,38 @@ G_BEGIN_DECLS
 struct _ObtPaths;
 
 typedef enum {
-       OBT_LINK_TYPE_APPLICATION = 1,
-       OBT_LINK_TYPE_URL         = 2,
-       OBT_LINK_TYPE_DIRECTORY   = 3
+    OBT_LINK_TYPE_APPLICATION = 1,
+    OBT_LINK_TYPE_URL         = 2,
+    OBT_LINK_TYPE_DIRECTORY   = 3
 } ObtLinkType;
 
 typedef enum {
-       OBT_LINK_APP_STARTUP_NO_SUPPORT,
-       OBT_LINK_APP_STARTUP_PROTOCOL_SUPPORT,
-       OBT_LINK_APP_STARTUP_LEGACY_SUPPORT
+    OBT_LINK_APP_STARTUP_NO_SUPPORT,
+    OBT_LINK_APP_STARTUP_PROTOCOL_SUPPORT,
+    OBT_LINK_APP_STARTUP_LEGACY_SUPPORT
 } ObtLinkAppStartup;
 
+/*! These bit flags are environments for links.  Some links are used or not
+  used in various environments. */
 typedef enum {
-       /*! The app can be launched with a single local file */
-       OBT_LINK_APP_SINGLE_LOCAL = 1 << 0,
-       /*! The app can be launched with multiple local files */
-       OBT_LINK_APP_MULTI_LOCAL  = 1 << 1,
-       /*! The app can be launched with a single URL */
-       OBT_LINK_APP_SINGLE_URL   = 1 << 2,
-       /*! The app can be launched with multiple URLs */
-       OBT_LINK_APP_MULTI_URL    = 1 << 3
+    OBT_LINK_ENV_OPENBOX = 1 << 0,
+    OBT_LINK_ENV_GNOME   = 1 << 1,
+    OBT_LINK_ENV_KDE     = 1 << 2,
+    OBT_LINK_ENV_LXDE    = 1 << 3,
+    OBT_LINK_ENV_ROX     = 1 << 4,
+    OBT_LINK_ENV_XFCE    = 1 << 5,
+    OBT_LINK_ENV_OLD     = 1 << 6
+} ObtLinkEnvFlags;
+
+typedef enum {
+    /*! The app can be launched with a single local file */
+    OBT_LINK_APP_SINGLE_LOCAL = 1 << 0,
+    /*! The app can be launched with multiple local files */
+    OBT_LINK_APP_MULTI_LOCAL  = 1 << 1,
+    /*! The app can be launched with a single URL */
+    OBT_LINK_APP_SINGLE_URL   = 1 << 2,
+    /*! The app can be launched with multiple URLs */
+    OBT_LINK_APP_MULTI_URL    = 1 << 3
 } ObtLinkAppOpen;
 
 typedef struct _ObtLink     ObtLink;
@@ -65,8 +77,8 @@ gboolean obt_link_deleted (ObtLink *e);
 ObtLinkType obt_link_type (ObtLink *e);
 
 /*! Returns TRUE if the .desktop file should be displayed to users, given the
-    current    environment.  If FALSE, the .desktop file should not be showed.
-       This also uses the TryExec option if it is present.
+    current environment.  If FALSE, the .desktop file should not be showed.
+    This also uses the TryExec option if it is present.
     @env A semicolon-deliminated list of environemnts.  Can be one or more of:
          GNOME, KDE, ROX, XFCE.  Other environments not listed here may also
          be supported.  This can be null also if not listing any environment. */
@@ -88,7 +100,8 @@ const gchar*  obt_link_app_executable      (ObtLink *e);
 /*! Returns the path in which the application should be run */
 const gchar*  obt_link_app_path            (ObtLink *e);
 gboolean      obt_link_app_run_in_terminal (ObtLink *e);
-const gchar** obt_link_app_mime_types      (ObtLink *e);
+const gchar*const* obt_link_app_mime_types      (ObtLink *e);
+const GQuark* obt_link_app_categories      (ObtLink *e, gulong *n);
 /*! Returns a combination of values in the ObtLinkAppOpen enum,
     specifying if the application can be launched to open one or more files
     and URLs. */
This page took 0.021747 seconds and 4 git commands to generate.