X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Flink.h;h=9ad86cc9027ebedc88020e75d24f325fe3ef3e60;hb=aa15563feeee03d7748e7d5279decf60db23fda9;hp=bcac9d992f66dbc6479a324ff7b6f8337168eda3;hpb=0d90bd57abe304ffca4bf5cd1a647d30dea882b7;p=chaz%2Fopenbox diff --git a/obt/link.h b/obt/link.h index bcac9d99..9ad86cc9 100644 --- a/obt/link.h +++ b/obt/link.h @@ -23,6 +23,8 @@ G_BEGIN_DECLS +struct _ObtPaths; + typedef enum { OBT_LINK_TYPE_APPLICATION = 1, OBT_LINK_TYPE_URL = 2, @@ -35,6 +37,18 @@ typedef enum { 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 { + 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, @@ -48,7 +62,8 @@ typedef enum { typedef struct _ObtLink ObtLink; -ObtLink* obt_link_from_ddfile(const gchar *name, GSList *paths); +ObtLink* obt_link_from_ddfile(const gchar *name, GSList *paths, + struct _ObtPaths *p); void obt_link_ref(ObtLink *e); void obt_link_unref(ObtLink *e); @@ -85,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. */