2 * Copyright (C) 2008 Diego Hernan Borghetti.
32 E_Key
*__e_key_find(short code
, short ctrl_x
)
38 if (p
->code
== code
&& p
->ctrl_x
== ctrl_x
)
45 void e_key_add(short code
, short ctrl_x
, void (*cb
)(E_Eco
*))
47 E_Key
*key
= __e_key_find(code
, ctrl_x
);
52 key
= (E_Key
*)malloc(sizeof(E_Key
));
63 void e_key_remove(short code
, short ctrl_x
)
70 if (p
->code
== code
&& p
->ctrl_x
== ctrl_x
) {
84 int e_key_exec(E_Eco
*ec
, short code
, short ctrl_x
)
88 key
= __e_key_find(code
, ctrl_x
);