Deleted Added
full compact
magic.h.in (267897) magic.h.in (275698)
1/*
2 * Copyright (c) Christos Zoulas 2003.
3 * All Rights Reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 82 unchanged lines hidden (view full) ---

91const char *magic_descriptor(magic_t, int);
92const char *magic_buffer(magic_t, const void *, size_t);
93
94const char *magic_error(magic_t);
95int magic_setflags(magic_t, int);
96
97int magic_version(void);
98int magic_load(magic_t, const char *);
1/*
2 * Copyright (c) Christos Zoulas 2003.
3 * All Rights Reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 82 unchanged lines hidden (view full) ---

91const char *magic_descriptor(magic_t, int);
92const char *magic_buffer(magic_t, const void *, size_t);
93
94const char *magic_error(magic_t);
95int magic_setflags(magic_t, int);
96
97int magic_version(void);
98int magic_load(magic_t, const char *);
99int magic_load_buffers(magic_t, void **, size_t *, size_t);
100
99int magic_compile(magic_t, const char *);
100int magic_check(magic_t, const char *);
101int magic_list(magic_t, const char *);
102int magic_errno(magic_t);
103
101int magic_compile(magic_t, const char *);
102int magic_check(magic_t, const char *);
103int magic_list(magic_t, const char *);
104int magic_errno(magic_t);
105
106#define MAGIC_PARAM_INDIR_MAX 0
107#define MAGIC_PARAM_NAME_MAX 1
108#define MAGIC_PARAM_ELF_PHNUM_MAX 2
109#define MAGIC_PARAM_ELF_SHNUM_MAX 3
110
111int magic_setparam(magic_t, int, const void *);
112int magic_getparam(magic_t, int, void *);
113
104#ifdef __cplusplus
105};
106#endif
107
108#endif /* _MAGIC_H */
114#ifdef __cplusplus
115};
116#endif
117
118#endif /* _MAGIC_H */