diff options
author | 2012-04-01 20:19:43 +0200 | |
---|---|---|
committer | 2012-04-01 20:20:11 +0200 | |
commit | 7ca65607dcd1d304dbd5abce0d782a5caf26c304 (patch) | |
tree | 8317da1f04ed99e9f6f6c26f5dde8d896a952afe /plugins/shellexec/shellexec.h | |
parent | e1a8ce1d5d19697269d4b87c945e886f55acd157 (diff) |
shellexec extended/fixed to support GUI (by Azeem Arshad)
Diffstat (limited to 'plugins/shellexec/shellexec.h')
-rw-r--r-- | plugins/shellexec/shellexec.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/shellexec/shellexec.h b/plugins/shellexec/shellexec.h new file mode 100644 index 00000000..08fc2279 --- /dev/null +++ b/plugins/shellexec/shellexec.h @@ -0,0 +1,49 @@ +/* + Shellexec plugin for DeaDBeeF + Copyright (C) 2010-2012 Deadbeef team + Original developer Viktor Semykin <thesame.ml@gmail.com> + Maintainance, minor improvements Alexey Yakovenko <waker@users.sf.net> + GUI support and bugfixing Azeem Arshad <kr00r4n@gmail.com> + + 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, either version 2 of the License, or + (at your option) any later version. + + 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/>. +*/ +#ifndef __SHELLEXEC_H +#define __SHELLEXEC_H + +#include <deadbeef/deadbeef.h> + +//Probably it's reasonable to move these flags to parent struct +enum { + SHX_ACTION_LOCAL_ONLY = 1 << 0, + SHX_ACTION_REMOTE_ONLY = 1 << 1 +}; + +typedef struct Shx_action_s +{ + DB_plugin_action_t parent; + + const char *shcommand; + uint32_t shx_flags; +} Shx_action_t; + +typedef struct Shx_plugin_s +{ + DB_misc_t misc; + Shx_action_t * + (*shx_get_actions)(DB_plugin_action_callback_t callback, int omit_disabled); + void + (*shx_save_actions)(Shx_action_t *action_list); +} Shx_plugin_t; + +#endif |