~eday/drizzle/eday-dev

« back to all changes in this revision

Viewing changes to drizzled/internal/iocache.h

  • Committer: Eric Day
  • Date: 2010-01-07 20:02:38 UTC
  • mfrom: (971.3.291 staging)
  • Revision ID: eday@oddments.org-20100107200238-uqw8v6kv9pl7nny5
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef MYSYS_IOCACHE_H
22
 
#define MYSYS_IOCACHE_H
 
21
#ifndef DRIZZLED_INTERNAL_IOCACHE_H
 
22
#define DRIZZLED_INTERNAL_IOCACHE_H
23
23
 
24
 
#include <mysys/my_sys.h>
 
24
#include "drizzled/internal/my_sys.h"
25
25
 
26
26
#if defined(__cplusplus)
27
27
extern "C" {
132
132
  void* arg;        /* for use by pre/post_read */
133
133
  char *file_name;      /* if used with 'open_cached_file' */
134
134
  char *dir,*prefix;
135
 
  File file; /* file descriptor */
 
135
  int file; /* file descriptor */
136
136
  /*
137
137
    seek_not_done is set by my_b_seek() to inform the upcoming read/write
138
138
    operation that a seek needs to be preformed prior to the actual I/O
164
164
#endif
165
165
} IO_CACHE;
166
166
 
167
 
extern int init_io_cache(IO_CACHE *info,File file,size_t cachesize,
 
167
extern int init_io_cache(IO_CACHE *info,int file,size_t cachesize,
168
168
                         enum cache_type type,my_off_t seek_offset,
169
169
                         bool use_async_io, myf cache_myflags);
170
170
extern bool reinit_io_cache(IO_CACHE *info,enum cache_type type,
194
194
}
195
195
#endif
196
196
 
197
 
#endif /* MYSYS_IOCACHE_H */
 
197
#endif /* DRIZZLED_INTERNAL_IOCACHE_H */