scbpath.c File Reference

#include <string.h>
#include <sys/stat.h>
#include "scbpath.h"
Include dependency graph for scbpath.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

void erscribble_path_init (ScbPathPtr ptr)
gboolean erscribble_path_file_exist (const char *pathName)

Define Documentation

#define _GNU_SOURCE

Copyright (C) 2008 iRex Technologies B.V. All rights reserved.

Definition at line 28 of file scbpath.c.


Function Documentation

gboolean erscribble_path_file_exist ( const char *  pathName  ) 

Definition at line 77 of file scbpath.c.

00078 {
00079     struct stat statbuf;
00080     if (0 != stat(pathName, &statbuf))
00081     {
00082         return FALSE;
00083     }
00084 
00085 #ifdef ENABLE_DRIVER
00086     if (S_ISREG(statbuf.st_mode))
00087     {
00088         return TRUE;
00089     }
00090     return FALSE;
00091 #else
00092     return TRUE;
00093 #endif
00094 }

void erscribble_path_init ( ScbPathPtr  ptr  ) 

Definition at line 68 of file scbpath.c.

00069 {
00070     if (ptr)
00071     {
00072         memset(ptr, 0, sizeof(ScbPath));
00073     }
00074 }

Generated by  doxygen 1.6.2-20100208