diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 8b84d13a0..1b7c0b83a 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -441,10 +441,18 @@ enum { | |||
441 | ACTION_DANGLING_OK = (1 << 5), | 441 | ACTION_DANGLING_OK = (1 << 5), |
442 | }; | 442 | }; |
443 | typedef uint8_t recurse_flags_t; | 443 | typedef uint8_t recurse_flags_t; |
444 | extern int recursive_action(const char *fileName, unsigned flags, | 444 | typedef struct recursive_state { |
445 | int FAST_FUNC (*fileAction)(const char *fileName, struct stat* statbuf, void* userData, int depth), | 445 | unsigned flags; |
446 | int FAST_FUNC (*dirAction)(const char *fileName, struct stat* statbuf, void* userData, int depth), | 446 | unsigned depth; |
447 | void* userData, unsigned depth) FAST_FUNC; | 447 | void *userData; |
448 | int FAST_FUNC (*fileAction)(struct recursive_state *state, const char *fileName, struct stat* statbuf); | ||
449 | int FAST_FUNC (*dirAction)(struct recursive_state *state, const char *fileName, struct stat* statbuf); | ||
450 | } recursive_state_t; | ||
451 | int recursive_action(const char *fileName, unsigned flags, | ||
452 | int FAST_FUNC (*fileAction)(struct recursive_state *state, const char *fileName, struct stat* statbuf), | ||
453 | int FAST_FUNC (*dirAction)(struct recursive_state *state, const char *fileName, struct stat* statbuf), | ||
454 | void *userData | ||
455 | ) FAST_FUNC; | ||
448 | 456 | ||
449 | extern int device_open(const char *device, int mode) FAST_FUNC; | 457 | extern int device_open(const char *device, int mode) FAST_FUNC; |
450 | enum { GETPTY_BUFSIZE = 16 }; /* more than enough for "/dev/ttyXXX" */ | 458 | enum { GETPTY_BUFSIZE = 16 }; /* more than enough for "/dev/ttyXXX" */ |