~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_dir.h

  • Committer: Brian Aker
  • Date: 2009-02-12 22:45:08 UTC
  • Revision ID: brian@tangent.org-20090212224508-mrd9jwgn1zjdpqdk
Minor refactoring (we will need to disconnect the code from the include
file).

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef MY_DIR_H
23
23
#define MY_DIR_H
24
24
 
 
25
#include <drizzled/definitions.h>
25
26
#include <sys/stat.h>
26
27
 
27
28
#define MY_DONT_SORT    512     /* my_lib; Don't sort files */
37
38
typedef struct st_my_dir        /* Struct returned from my_dir */
38
39
{
39
40
  /*
40
 
    These members are just copies of parts of DYNAMIC_ARRAY structure, 
 
41
    These members are just copies of parts of DYNAMIC_ARRAY structure,
41
42
    which is allocated right after the end of MY_DIR structure (MEM_ROOT
42
43
    for storing names is also resides there). We've left them here because
43
44
    we don't want to change code that uses my_dir.
46
47
  uint                  number_off_files;
47
48
} MY_DIR;
48
49
 
49
 
extern MY_DIR *my_dir(const char *path,myf MyFlags);
 
50
extern MY_DIR *my_dir(const char *path, myf MyFlags);
50
51
extern void my_dirend(MY_DIR *buffer);
51
52
 
52
53
#endif /* MY_DIR_H */