syslog-ng source
file-opener.h File Reference
Include dependency graph for file-opener.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FileOpenerOptions
 
struct  FileOpener
 

Enumerations

enum  FileDirection { AFFILE_DIR_READ = 0x01 , AFFILE_DIR_WRITE = 0x02 }
 
enum  FileOpenerResult { FILE_OPENER_RESULT_SUCCESS , FILE_OPENER_RESULT_ERROR_TRANSIENT , FILE_OPENER_RESULT_ERROR_PERMANENT }
 

Functions

FileOpenerResult file_opener_open_fd (FileOpener *self, const gchar *name, FileDirection dir, gint *fd)
 
void file_opener_symlink (FileOpener *self, const gchar *name, const gchar *target)
 
void file_opener_set_options (FileOpener *self, FileOpenerOptions *options)
 
void file_opener_init_instance (FileOpener *self)
 
FileOpener * file_opener_new (void)
 
void file_opener_free (FileOpener *self)
 
void file_opener_options_defaults (FileOpenerOptions *options)
 
void file_opener_options_defaults_dont_change_permissions (FileOpenerOptions *options)
 
void file_opener_options_init (FileOpenerOptions *options, GlobalConfig *cfg)
 
void file_opener_options_deinit (FileOpenerOptions *options)
 

Enumeration Type Documentation

◆ FileDirection

Enumerator
AFFILE_DIR_READ 
AFFILE_DIR_WRITE 

◆ FileOpenerResult

Enumerator
FILE_OPENER_RESULT_SUCCESS 
FILE_OPENER_RESULT_ERROR_TRANSIENT 
FILE_OPENER_RESULT_ERROR_PERMANENT 

Function Documentation

◆ file_opener_free()

void file_opener_free ( FileOpener *  self)

◆ file_opener_init_instance()

void file_opener_init_instance ( FileOpener *  self)

◆ file_opener_new()

FileOpener* file_opener_new ( void  )

◆ file_opener_open_fd()

FileOpenerResult file_opener_open_fd ( FileOpener *  self,
const gchar *  name,
FileDirection  dir,
gint *  fd 
)

◆ file_opener_options_defaults()

void file_opener_options_defaults ( FileOpenerOptions options)

◆ file_opener_options_defaults_dont_change_permissions()

void file_opener_options_defaults_dont_change_permissions ( FileOpenerOptions options)

◆ file_opener_options_deinit()

void file_opener_options_deinit ( FileOpenerOptions options)

◆ file_opener_options_init()

void file_opener_options_init ( FileOpenerOptions options,
GlobalConfig *  cfg 
)

◆ file_opener_set_options()

void file_opener_set_options ( FileOpener *  self,
FileOpenerOptions options 
)

◆ file_opener_symlink()

void file_opener_symlink ( FileOpener *  self,
const gchar *  name,
const gchar *  target 
)