keystack.h 447 Bytes
Newer Older
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
/* Showkeys 
   Copyright Noufal Ibrahim <noufal@nibrahim.net.in> 2011

   Licensed under the GPLv3 : http://www.gnu.org/licenses/gpl.txt

   Please see LICENSE file for complete license.
*/
#define NKEYS 10

typedef struct {
  char *keyname;
  int times;
} KeyStroke;

typedef struct {
  int size;
  int pos;
  KeyStroke *keystrokes;
} KeyStack;



KeyStack *create_keystack();
void push(KeyStack *, char *);
void display_keystack(KeyStack *);