Rev 43 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 43 | Rev 103 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | /**
|
3 | /**
|
4 | * \file inotify-cxx.h
|
4 | * \file inotify-cxx.h
|
5 | *
|
5 | *
|
6 | * inotify C++ interface
|
6 | * inotify C++ interface
|
7 | *
|
7 | *
|
8 | * Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz>
|
8 | * Copyright (C) 2006, 2007, 2009 Lukas Jelinek, <lukas@aiken.cz>
|
9 | *
|
9 | *
|
10 | * This program is free software; you can redistribute it and/or
|
10 | * This program is free software; you can redistribute it and/or
|
11 | * modify it under the terms of one of the following licenses:
|
11 | * modify it under the terms of one of the following licenses:
|
12 | *
|
12 | *
|
13 | * \li 1. X11-style license (see LICENSE-X11)
|
13 | * \li 1. X11-style license (see LICENSE-X11)
|
14 | * \li 2. GNU Lesser General Public License, version 2.1 (see LICENSE-LGPL)
|
14 | * \li 2. GNU Lesser General Public License, version 2.1 (see LICENSE-LGPL)
|
15 | * \li 3. GNU General Public License, version 2 (see LICENSE-GPL)
|
15 | * \li 3. GNU General Public License, version 2 (see LICENSE-GPL)
|
16 | *
|
16 | *
|
17 | * If you want to help with choosing the best license for you,
|
17 | * If you want to help with choosing the best license for you,
|
18 | * please visit http://www.gnu.org/licenses/license-list.html.
|
18 | * please visit http://www.gnu.org/licenses/license-list.html.
|
19 | *
|
19 | *
|
- | 20 | * Credits:
|
|
- | 21 | * Mike Frysinger (cleanup of includes)
|
|
- | 22 | *
|
|
20 | */
|
23 | */
|
21 | 24 | ||
22 | 25 | ||
23 | 26 | ||
24 | 27 | ||
Line 29... | Line 32... | ||
29 | #include <stdint.h>
|
32 | #include <stdint.h>
|
30 | #include <string>
|
33 | #include <string>
|
31 | #include <deque>
|
34 | #include <deque>
|
32 | #include <map>
|
35 | #include <map>
|
33 | 36 | ||
34 | // Please ensure that the following headers take the right place
|
37 | // Please ensure that the following header file takes the right place
|
35 | #include <sys/syscall.h>
|
- | |
36 | #include <sys/inotify.h>
|
38 | #include <sys/inotify.h>
|
37 | 39 | ||
38 | // Use this if syscalls not defined
|
- | |
39 | #ifndef __NR_inotify_init
|
- | |
40 | #include <sys/inotify-syscalls.h>
|
- | |
41 | #endif // __NR_inotify_init
|
- | |
42 | 40 | ||
43 | /// Event struct size
|
41 | /// Event struct size
|
44 | #define INOTIFY_EVENT_SIZE (sizeof(struct inotify_event))
|
42 | #define INOTIFY_EVENT_SIZE (sizeof(struct inotify_event))
|
45 | 43 | ||
46 | /// Event buffer length
|
44 | /// Event buffer length
|