struct vfsmatch* vfs_match_new ( const char *  str  )  [read]

Compile a regular expression for matching.

Definition at line 497 of file vfs.c.

00498 {
00499         struct vfsmatch *vm;
00500 
00501         vm = g_slice_new0(struct vfsmatch);
00502 
00503         if (regcomp(&vm->regex, str, REG_EXTENDED|REG_ICASE) != 0) {
00504                 g_slice_free(struct vfsmatch, vm);
00505                 return (NULL);
00506         }
00507         vm->string = g_strdup(str);
00508         
00509         return (vm);
00510 }

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:49 2010 for herrie by  doxygen 1.6.3