Changeset 151 in libcf for trunk/include/cf_file.h


Ignore:
Timestamp:
10/31/13 10:17:24 (11 years ago)
Author:
cheese
Message:

#1 fix interface and add util module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_file.h

    r128 r151  
    3131
    3232CF_EXPORT int
    33 CF_File_Open            (const char         * path,
     33CF_File_Open            (cf_ctx             * ctx,
     34                         const char         * path,
    3435                         const CF_FILE_FLAG flag);
    3536
    3637CF_EXPORT int
    37 CF_File_Create          (const char * path);
     38CF_File_Close           (cf_ctx ctx);
    3839
    3940CF_EXPORT int
    40 CF_File_Close           (const int fd);
    41 
    42 CF_EXPORT int
    43 CF_File_Read            (const int      fd,
     41CF_File_Read            (const cf_ctx   ctx,
    4442                         void           * buf,
    4543                         const size_t   len);
    4644
    4745CF_EXPORT int
    48 CF_File_Write           (const int      fd,
     46CF_File_Write           (const cf_ctx   ctx,
    4947                         const void     * buf,
    5048                         const size_t   len);
     
    5957CF_File_MakeDirectory   (const char * path);
    6058
     59CF_EXPORT int
     60CF_File_GetPath         (const cf_ctx   ctx,
     61                         char           * path);
     62
    6163#ifdef __cplusplus
    6264}
Note: See TracChangeset for help on using the changeset viewer.