diff options
author | Javier <dev.git@javispedro.com> | 2015-01-19 00:07:22 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-01-19 00:07:22 +0100 |
commit | cd89c60570d17cad28928f3495eded7af2b45431 (patch) | |
tree | a7d13d4f0d63e852062964fcf79ca9d5ad70ae15 /libmdock/app-id.h | |
parent | a215500011290121925cfe929d71b80696732230 (diff) | |
download | mdock-cd89c60570d17cad28928f3495eded7af2b45431.tar.gz mdock-cd89c60570d17cad28928f3495eded7af2b45431.zip |
initially app-id support
Diffstat (limited to 'libmdock/app-id.h')
-rw-r--r-- | libmdock/app-id.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libmdock/app-id.h b/libmdock/app-id.h new file mode 100644 index 0000000..df69ab6 --- /dev/null +++ b/libmdock/app-id.h @@ -0,0 +1,44 @@ +/* + * Copyright 2015 Javier S. Pedro <dev.git@javispedro.com> + * + * This file is part of MDock. + * + * MDock 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, either version 3 of the License, or + * (at your option) any later version. + * + * MDock 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with MDock. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _MDOCK_APPID_H_ +#define _MDOCK_APPID_H_ + +#include <glib.h> +#define WNCK_I_KNOW_THIS_IS_UNSTABLE 1 +#include <libwnck/libwnck.h> + +typedef struct _AppId { + gchar *host; + gint uid; + gchar *executable; + gchar *wm_class_class; + gchar *wm_class_name; +} AppId; + +AppId * app_id_new(); +AppId * app_id_create(const gchar *host, gint uid, const gchar *executable, const gchar *wm_class_class, const gchar *wm_class_name); +void app_id_destroy(AppId *appid); + +guint app_id_hash(gconstpointer appid); +gboolean app_id_equal(gconstpointer ap, gconstpointer bp); + +AppId * app_id_from_window(WnckWindow *window); + +#endif /* _MDOCK_APPID_H_ */ |