blob: 1d10ac7db3f8e721deb27ce8b4bd4e2e221e021e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
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.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;
void (*save_actions) (void);
Shx_action_t* (*action_add) (void);
void (*action_remove) (Shx_action_t *a);
void (*action_free) (Shx_action_t *a);
} Shx_plugin_t;
#endif
|