X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fports.h;h=7b743c437eed8d9bff3b3a9ab35a746da76c3484;hb=9972486f44c586225d98967441dcd3f3fd920636;hp=c544f19a6a236db5affdadda8292a549d394c966;hpb=c593146bf3fab6290c71cbbb974e0a756e43f5e0;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/ports.h b/libhb/ports.h index c544f19a..7b743c43 100644 --- a/libhb/ports.h +++ b/libhb/ports.h @@ -7,21 +7,35 @@ #ifndef HB_PORTS_H #define HB_PORTS_H +#if defined(_WIN32) +#define DIR_SEP_STR "\\" +#else +#define DIR_SEP_STR "/" +#endif + /************************************************************************ * Utils ***********************************************************************/ uint64_t hb_get_date(); void hb_snooze( int delay ); int hb_get_cpu_count(); +#ifdef SYS_MINGW +char *strtok_r(char *s, const char *delim, char **save_ptr); +#endif #ifdef __LIBHB__ /* Everything from now is only used internally and hidden to the UI */ /************************************************************************ - * Files utils + * DVD utils + ***********************************************************************/ +int hb_dvd_region(char *device, int *region_mask); + +/************************************************************************ + * File utils ***********************************************************************/ -void hb_get_tempory_directory( hb_handle_t * h, char path[512] ); +void hb_get_temporary_directory( char path[512] ); void hb_get_tempory_filename( hb_handle_t *, char name[1024], char * fmt, ... ); void hb_mkdir( char * name ); @@ -69,7 +83,9 @@ typedef struct hb_cond_s hb_cond_t; hb_cond_t * hb_cond_init(); void hb_cond_wait( hb_cond_t *, hb_lock_t * ); +void hb_cond_timedwait( hb_cond_t * c, hb_lock_t * lock, int msec ); void hb_cond_signal( hb_cond_t * ); +void hb_cond_broadcast( hb_cond_t * c ); void hb_cond_close( hb_cond_t ** ); /************************************************************************