#include <libOOOggChef/libOOOggChef.h>
#include <string>
#include <vector>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
typedef bool(* | BufferWriter )(unsigned char *buffer, unsigned long bufferSize, void *userData) |
Often used by IRecomposer's subclasses' constructor, and elsewhere. | |
Functions | |
bool LIBOOOGGCHEF_API | wantOnlyCMML (const vector< string > *inWantedMIMETypes) |
Check whether the user requested only CMML in the list of MIME types. | |
bool LIBOOOGGCHEF_API | wantOnlyPacketBody (const vector< string > *inWantedMIMETypes) |
Check whether we should serve out only the packet bodies given the list of MIME types. | |
bool LIBOOOGGCHEF_API | fileExists (const string inFilename) |
a.k.a. World's most stupid stat() function | |
bool LIBOOOGGCHEF_API | sendFile (const string inFilename, BufferWriter inBufferWriter, void *inBufferWriterUserData) |
Push out the entire contents of file to the inBufferWriter function. |
|
Often used by IRecomposer's subclasses' constructor, and elsewhere.
Definition at line 46 of file utils.h. Referenced by AnnodexRecomposer::AnnodexRecomposer(), CMMLRecomposer::CMMLRecomposer(), and sendFile(). |
|
a.k.a. World's most stupid stat() function
Definition at line 51 of file utils.cpp. Referenced by oggchef_handler(), and AnnodexRecomposer::recomposeStreamFrom(). |
|
Push out the entire contents of file to the inBufferWriter function.
Definition at line 78 of file utils.cpp. References BufferWriter. Referenced by CMMLRecomposer::recomposeStreamFrom(). |
|
Check whether the user requested only CMML in the list of MIME types.
Definition at line 44 of file utils.cpp. Referenced by oggchef_handler(), CMMLRecomposer::recomposeStreamFrom(), and AnnodexRecomposer::recomposeStreamFrom(). |
|
Check whether we should serve out only the packet bodies given the list of MIME types.
Definition at line 69 of file utils.cpp. Referenced by AnnodexRecomposer::acceptOggPage(). |