Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions
collate.c File Reference
#include "collate.h"
#include "debug.h"
#include "ntfs.h"

Go to the source code of this file.

Typedefs

typedef int(* ntfs_collate_func_t )(ntfs_volume *, const void *, const int, const void *, const int)
 

Functions

int ntfs_collate (ntfs_volume *vol, COLLATION_RULE cr, const void *data1, const int data1_len, const void *data2, const int data2_len)
 

Typedef Documentation

typedef int(* ntfs_collate_func_t)(ntfs_volume *, const void *, const int, const void *, const int)

Definition at line 69 of file collate.c.

Function Documentation

int ntfs_collate ( ntfs_volume vol,
COLLATION_RULE  cr,
const void data1,
const int  data1_len,
const void data2,
const int  data2_len 
)

ntfs_collate - collate two data items using a specified collation rule : ntfs volume to which the data items belong : collation rule to use when comparing the items : first data item to collate : length in bytes of : second data item to collate : length in bytes of

Collate the two data items and using the collation rule and return -1, 0, ir 1 if is found, respectively, to collate before, to match, or to collate after .

For speed we use the collation rule as an index into two tables of function pointers to call the appropriate collation function.

Definition at line 101 of file collate.c.