Changeset 226 for trunk/include


Ignore:
Timestamp:
04/05/11 15:01:41 (13 years ago)
Author:
tim
Message:

several fixes for pyregfi Windows portability
better error handling within pyregfi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r224 r226  
    8484#undef _EXPORT
    8585#endif
     86#ifdef REGFI_WIN32
     87#define _EXPORT __declspec(dllexport)
     88#else
    8689#define _EXPORT __attribute__((visibility("default")))
    87 
    88 
     90#endif
     91
     92#ifndef EOVERFLOW
     93# define EOVERFLOW E2BIG
     94#endif
    8995
    9096/******************************************************************************/
     
    709715typedef struct _regfi_raw_file
    710716{
    711   off_t    (* seek)(); /* (REGFI_RAW_FILE* self, off_t offset, int whence) */
     717  int64_t  (* seek)(); /* (REGFI_RAW_FILE* self, uint64_t offset, int whence) */
    712718  ssize_t  (* read)(); /* (REGFI_RAW_FILE* self, void* buf, size_t count) */
    713719
     
    16271633/*    Private (and undocumented) Functions                                    */
    16281634/******************************************************************************/
    1629 off_t                 regfi_raw_seek(REGFI_RAW_FILE* self,
    1630                                      off_t offset, int whence);
     1635int64_t               regfi_raw_seek(REGFI_RAW_FILE* self,
     1636                                     uint64_t offset, int whence);
    16311637ssize_t               regfi_raw_read(REGFI_RAW_FILE* self,
    16321638                                     void* buf, size_t count);
    16331639_EXPORT
    1634 off_t                 regfi_seek(REGFI_RAW_FILE* file_cb,
    1635                                  off_t offset, int whence);
     1640uint64_t              regfi_seek(REGFI_RAW_FILE* file_cb,
     1641                                 uint64_t offset, int whence);
    16361642_EXPORT
    16371643uint32_t              regfi_read(REGFI_RAW_FILE* file_cb,
Note: See TracChangeset for help on using the changeset viewer.