#include "config.h"
#include <stdio.h>
#include <gphoto2/gphoto2-port.h>
#include <gphoto2/gphoto2-port-result.h>
Include dependency graph for gphoto2-port-portability.c:
Functions | |
int | gp_system_mkdir (const char *dirname) |
mkdir UNIX functionality | |
int | gp_system_rmdir (const char *dirname) |
rmdir UNIX functionality | |
gp_system_dir | gp_system_opendir (const char *dirname) |
opendir UNIX functionality | |
gp_system_dirent | gp_system_readdir (gp_system_dir d) |
readdir UNIX functionality | |
const char * | gp_system_filename (gp_system_dirent de) |
retrieve UNIX filename out of a directory entry | |
int | gp_system_closedir (gp_system_dir dir) |
closedir UNIX functionality | |
int | gp_system_is_file (const char *filename) |
check if passed filename is a file | |
int | gp_system_is_dir (const char *dirname) |
check if passed filename is a directory |
This file contains various portability functions that make non UNIX (Windows) ports easier.
int gp_system_closedir | ( | gp_system_dir | dir | ) |
closedir UNIX functionality
dir | directory to close |
const char* gp_system_filename | ( | gp_system_dirent | de | ) |
retrieve UNIX filename out of a directory entry
de | directory entry as returned from gp_system_readdir() |
int gp_system_is_dir | ( | const char * | dirname | ) |
check if passed filename is a directory
dirname | file name to check |
int gp_system_is_file | ( | const char * | filename | ) |
check if passed filename is a file
filename | file name to check |
int gp_system_mkdir | ( | const char * | dirname | ) |
mkdir UNIX functionality
dirname | directory to create |
gp_system_dir gp_system_opendir | ( | const char * | dirname | ) |
opendir UNIX functionality
dirname | directory to open |
gp_system_dirent gp_system_readdir | ( | gp_system_dir | d | ) |
readdir UNIX functionality
d | directory to enumerate |
int gp_system_rmdir | ( | const char * | dirname | ) |
rmdir UNIX functionality
dirname | directory to remove |