scbpath.h File Reference

#include <glib.h>
#include "scbconfig.h"
Include dependency graph for scbpath.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _ScbPath

Typedefs

typedef G_BEGIN_DECLS struct
_ScbPath 
ScbPath
typedef ScbPathScbPathPtr

Functions

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

Typedef Documentation

typedef G_BEGIN_DECLS struct _ScbPath ScbPath

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

typedef ScbPath* ScbPathPtr

Definition at line 67 of file scbpath.h.


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