Changeset 136 for trunk/include


Ignore:
Timestamp:
01/23/09 12:29:51 (15 years ago)
Author:
tim
Message:

fixed various integer issues and memory allocation issues

polished error message functions and added initial messages in a few places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r135 r136  
    3636#include <stdio.h>
    3737#include <stdbool.h>
     38#include <stdarg.h>
    3839#include <string.h>
    3940#include <errno.h>
     
    7071/* XXX: Has MS defined a REG_QWORD_BE? */
    7172/* Not a real type in the registry */
    72 #define REG_KEY                        0x7FFFFFFF
     73#define REG_KEY                    0x7FFFFFFF
    7374
    7475#define REGFI_REGF_SIZE            0x1000 /* "regf" header block size */
     
    325326int                   regfi_close(REGFI_FILE* r);
    326327
    327 /* regfi_get_message: Get errors, warnings, and/or verbose information
    328  *                    relating to processing of the given registry file.
     328/* regfi_get_messages: Get errors, warnings, and/or verbose information
     329 *                     relating to processing of the given registry file.
    329330 *
    330331 * Arguments:
     
    334335 *   A newly allocated char* which must be free()d by the caller.
    335336 */
    336 char*                 regfi_get_message(REGFI_FILE* file);
     337char*                 regfi_get_messages(REGFI_FILE* file);
    337338
    338339REGFI_ITERATOR*       regfi_iterator_new(REGFI_FILE* fh);
     
    434435                                              REGFI_SUBKEY_LIST** lists,
    435436                                              bool strict);
    436 void                  regfi_add_message(REGFI_FILE* file, const char* error);
     437void                  regfi_add_message(REGFI_FILE* file, const char* fmt, ...);
    437438#endif  /* _REGFI_H */
Note: See TracChangeset for help on using the changeset viewer.