pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication
Loading

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJLIB Reference

File Access
[Input/Output]

Data Structures

struct  pj_file_stat

Functions

pj_bool_t pj_file_exists (const char *filename)
pj_off_t pj_file_size (const char *filename)
pj_status_t pj_file_delete (const char *filename)
pj_status_t pj_file_move (const char *oldname, const char *newname)
pj_status_t pj_file_getstat (const char *filename, pj_file_stat *stat)

Function Documentation

pj_status_t pj_file_delete ( const char *  filename  ) 

Delete a file.

Parameters:
filename The filename.
Returns:
PJ_SUCCESS on success or the appropriate error code.
pj_bool_t pj_file_exists ( const char *  filename  ) 

Returns non-zero if the specified file exists.

Parameters:
filename The file name.
Returns:
Non-zero if the file exists.
pj_status_t pj_file_getstat ( const char *  filename,
pj_file_stat stat 
)

Return information about the specified file. The time information in the stat structure will be in local time.

Parameters:
filename The filename.
stat Pointer to variable to receive file information.
Returns:
PJ_SUCCESS on success or the appropriate error code.
pj_status_t pj_file_move ( const char *  oldname,
const char *  newname 
)

Move a oldname to newname. If newname already exists, it will be overwritten.

Parameters:
oldname The file to rename.
newname New filename to assign.
Returns:
PJ_SUCCESS on success or the appropriate error code.
pj_off_t pj_file_size ( const char *  filename  ) 

Returns the size of the file.

Parameters:
filename The file name.
Returns:
The file size in bytes or -1 on error.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.