LiVES  2.8.4
Macros | Functions
utils.c File Reference
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <sys/file.h>
#include "main.h"
#include "support.h"
#include "interface.h"
#include "audio.h"
#include "resample.h"
#include "callbacks.h"

Macros

#define BUFFER_FILL_BYTES   65536
 
#define VER_MAJOR_MULT   1000000
 
#define VER_MINOR_MULT   1000
 
#define VER_MICRO_MULT   1
 
#define ASPECT_ALLOWANCE   0.005
 
#define rand_a   1073741789L
 
#define rand_c   32749L
 

Functions

char * filename_from_fd (char *val, int fd)
 
LIVES_INLINE void lives_srandom (unsigned int seed)
 
LIVES_INLINE uint64_t lives_random (void)
 
LIVES_INLINE pid_t lives_getpid (void)
 
LIVES_INLINE int lives_open3 (const char *pathname, int flags, mode_t mode)
 
LIVES_INLINE int lives_open2 (const char *pathname, int flags)
 
LIVES_INLINE int lives_getuid (void)
 
LIVES_INLINE int lives_getgid (void)
 
LIVES_INLINE ssize_t lives_readlink (const char *path, char *buf, size_t bufsiz)
 
LIVES_INLINE boolean lives_fsync (int fd)
 
LIVES_INLINE void lives_sync (void)
 
LIVES_INLINE boolean lives_setenv (const char *name, const char *value)
 
int lives_system (const char *com, boolean allow_error)
 
lives_pgid_t lives_fork (const char *com)
 
ssize_t lives_write (int fd, const void *buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_le (int fd, const void *buf, size_t count, boolean allow_fail)
 
int lives_fputs (const char *s, FILE *stream)
 
char * lives_fgets (char *s, int size, FILE *stream)
 
void lives_close_all_file_buffers (void)
 
ssize_t lives_read (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_le (int fd, void *buf, size_t count, boolean allow_less)
 
LIVES_INLINE int lives_open_buffered_rdonly (const char *pathname)
 
LIVES_INLINE int lives_creat_buffered (const char *pathname, int mode)
 
int lives_close_buffered (int fd)
 
off_t lives_lseek_buffered_rdonly (int fd, off_t offset)
 
ssize_t lives_read_buffered (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_le_buffered (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_write_buffered (int fd, const char *buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_le_buffered (int fd, const void *buf, size_t count, boolean allow_fail)
 
char * lives_format_storage_space_string (uint64_t space)
 
lives_storage_status_t get_storage_status (const char *dir, uint64_t warn_level, uint64_t *dsval)
 
int lives_chdir (const char *path, boolean allow_fail)
 
LIVES_INLINE boolean lives_freep (void **ptr)
 
LIVES_INLINE int lives_kill (lives_pid_t pid, int sig)
 
LIVES_INLINE int lives_killpg (lives_pgid_t pgrp, int sig)
 
LIVES_INLINE int myround (double n)
 
LIVES_INLINE void clear_mainw_msg (void)
 
LIVES_INLINE uint64_t lives_10pow (int pow)
 
LIVES_INLINE double lives_fix (double val, int decimals)
 
LIVES_INLINE int get_approx_ln (uint32_t x)
 
LIVES_INLINE int64_t lives_get_current_ticks (void)
 
int lives_alarm_set (int64_t ticks)
 
boolean lives_alarm_get (int alarm_handle)
 
void lives_alarm_clear (int alarm_handle)
 
LIVES_INLINE char * lives_strappend (char *string, int len, const char *xnew)
 
LIVES_INLINE LiVESList * lives_list_append_unique (LiVESList *xlist, const char *add)
 
LIVES_INLINE float LEFloat_to_BEFloat (float f)
 
LIVES_INLINE double calc_time_from_frame (int clip, int frame)
 
LIVES_INLINE int calc_frame_from_time (int filenum, double time)
 nearest frame start More...
 
LIVES_INLINE int calc_frame_from_time2 (int filenum, double time)
 nearest frame end More...
 
LIVES_INLINE int calc_frame_from_time3 (int filenum, double time)
 nearest frame mid More...
 
LIVES_INLINE boolean is_realtime_aplayer (int ptype)
 
void calc_aframeno (int fileno)
 
int calc_new_playback_position (int fileno, uint64_t otc, uint64_t *ntc)
 
void calc_maxspect (int rwidth, int rheight, int *cwidth, int *cheight)
 
void init_clipboard (void)
 
void d_print (const char *fmt,...)
 
boolean add_lmap_error (lives_lmap_error_t lerror, const char *name, livespointer user_data, int clipno, int frameno, double atime, boolean affects_current)
 
void clear_lmap_errors (void)
 
boolean check_for_lock_file (const char *set_name, int type)
 
boolean do_std_checks (const char *type_name, const char *type, size_t maxlen, const char *nreject)
 
boolean is_legal_set_name (const char *set_name, boolean allow_dupes)
 
LIVES_INLINE const char * get_image_ext_for_type (lives_image_type_t imgtype)
 
LIVES_INLINE lives_image_type_t lives_image_ext_to_type (const char *img_ext)
 
LIVES_INLINE lives_image_type_t lives_image_type_to_image_type (const char *lives_img_type)
 
LIVES_INLINE char * make_image_file_name (lives_clip_t *sfile, int frame, const char *img_ext)
 
boolean check_frame_count (int idx)
 
void count_opening_frames (void)
 
void get_frame_count (int idx)
 
void get_frames_sizes (int fileno, int frame)
 
void get_next_free_file (void)
 
void get_dirname (char *filename)
 
char * get_dir (const char *filename)
 
void get_basename (char *filename)
 
void get_filename (char *filename, boolean strip_dir)
 
char * get_extension (const char *filename)
 
char * ensure_extension (const char *fname, const char *ext)
 
boolean ensure_isdir (char *fname)
 
void get_location (const char *exe, char *val, int maxlen)
 
uint64_t get_version_hash (const char *exe, const char *sep, int piece)
 
uint64_t make_version_hash (const char *ver)
 
char * repl_workdir (const char *entry, boolean fwd)
 
void remove_layout_files (LiVESList *map)
 
void get_play_times (void)
 
void draw_little_bars (double ptrtime)
 
void get_total_time (lives_clip_t *file)
 
void find_when_to_stop (void)
 
void minimise_aspect_delta (double aspect, int hblock, int vblock, int hsize, int vsize, int *width, int *height)
 
void zero_spinbuttons (void)
 
boolean switch_aud_to_jack (void)
 
boolean switch_aud_to_pulse (void)
 
void switch_aud_to_sox (boolean set_in_prefs)
 
void switch_aud_to_mplayer (boolean set_in_prefs)
 
void switch_aud_to_mplayer2 (boolean set_in_prefs)
 
boolean prepare_to_play_foreign (void)
 
boolean after_foreign_play (void)
 
void set_menu_text (LiVESWidget *menuitem, const char *text, boolean use_mnemonic)
 
void get_menu_text (LiVESWidget *menuitem, char *text)
 
void get_menu_text_long (LiVESWidget *menuitem, char *text)
 
LIVES_INLINE boolean int_array_contains_value (int *array, int num_elems, int value)
 
void reset_clipmenu (void)
 
boolean check_file (const char *file_name, boolean check_existing)
 check if file exists More...
 
int lives_rmdir (const char *dir, boolean force)
 
int lives_rmdir_with_parents (const char *dir)
 
int lives_rm (const char *file)
 
int lives_rmglob (const char *files)
 
int lives_cp (const char *from, const char *to)
 
int lives_cp_keep_perms (const char *from, const char *to)
 
int lives_mv (const char *from, const char *to)
 
int lives_touch (const char *tfile)
 
int lives_ln (const char *from, const char *to)
 
int lives_chmod (const char *target, const char *mode)
 
int lives_cat (const char *from, const char *to, boolean append)
 
int lives_echo (const char *text, const char *to, boolean append)
 
void lives_kill_subprocesses (const char *dirname, boolean kill_parent)
 
void lives_suspend_resume_process (const char *dirname, boolean suspend)
 
boolean check_dir_access (const char *dir)
 
boolean check_dev_busy (char *devstr)
 
void activate_url_inner (const char *link)
 
void activate_url (LiVESAboutDialog *about, const char *link, livespointer data)
 
void show_manual_section (const char *lang, const char *section)
 
uint64_t get_file_size (int fd)
 
uint64_t sget_file_size (const char *name)
 
void wait_for_bg_audio_sync (lives_clip_t *sfile)
 
void reget_afilesize (int fileno)
 
boolean create_event_space (int length)
 
int lives_list_strcmp_index (LiVESList *list, livesconstpointer data)
 
void add_to_recent (const char *filename, double start, int frames, const char *extra_params)
 
int verhash (char *version)
 
void set_undoable (const char *what, boolean sensitive)
 
void set_redoable (const char *what, boolean sensitive)
 
void set_sel_label (LiVESWidget *sel_label)
 
LIVES_INLINE void lives_list_free_strings (LiVESList *list)
 
LIVES_INLINE void lives_slist_free_all (LiVESSList **list)
 
LIVES_INLINE void lives_list_free_all (LiVESList **list)
 
boolean cache_file_contents (const char *filename)
 
char * get_val_from_cached_list (const char *key, size_t maxlen)
 
char * clip_detail_to_string (lives_clip_details_t what, size_t *maxlenp)
 
boolean get_clip_value (int which, lives_clip_details_t what, void *retval, size_t maxlen)
 
void save_clip_value (int which, lives_clip_details_t what, void *val)
 
LiVESList * get_set_list (const char *dir, boolean utf8)
 
boolean check_for_ratio_fps (double fps)
 
double get_ratio_fps (const char *string)
 
char * remove_trailing_zeroes (double val)
 
uint32_t get_signed_endian (boolean is_signed, boolean little_endian)
 
int get_token_count (const char *string, int delim)
 
int lives_utf8_strcasecmp (const char *s1, const char *s2)
 
char * subst (const char *string, const char *from, const char *to)
 
char * insert_newlines (const char *text, int maxwidth)
 
int hextodec (char *string)
 
int get_hex_digit (const char *c)
 
LIVES_INLINE uint32_t fastrand (void)
 
void fastsrand (uint32_t seed)
 
boolean is_writeable_dir (const char *dir)
 
uint64_t get_fs_free (const char *dir)
 
LIVES_INLINE LiVESInterpType get_interp_value (short quality)
 
LIVES_INLINE LiVESList * lives_list_move_to_first (LiVESList *list, LiVESList *item)
 
LiVESList * lives_list_delete_string (LiVESList *list, char *string)
 
LiVESList * lives_list_copy_strings (LiVESList *list)
 
boolean string_lists_differ (LiVESList *alist, LiVESList *blist)
 
lives_cancel_t check_for_bad_ffmpeg (void)
 

Macro Definition Documentation

◆ ASPECT_ALLOWANCE

#define ASPECT_ALLOWANCE   0.005

◆ BUFFER_FILL_BYTES

#define BUFFER_FILL_BYTES   65536

◆ rand_a

#define rand_a   1073741789L

◆ rand_c

#define rand_c   32749L

◆ VER_MAJOR_MULT

#define VER_MAJOR_MULT   1000000

◆ VER_MICRO_MULT

#define VER_MICRO_MULT   1

◆ VER_MINOR_MULT

#define VER_MINOR_MULT   1000

Function Documentation

◆ activate_url()

void activate_url ( LiVESAboutDialog *  about,
const char *  link,
livespointer  data 
)

◆ activate_url_inner()

void activate_url_inner ( const char *  link)

◆ add_lmap_error()

boolean add_lmap_error ( lives_lmap_error_t  lerror,
const char *  name,
livespointer  user_data,
int  clipno,
int  frameno,
double  atime,
boolean  affects_current 
)

◆ add_to_recent()

void add_to_recent ( const char *  filename,
double  start,
int  frames,
const char *  extra_params 
)

◆ after_foreign_play()

boolean after_foreign_play ( void  )

◆ cache_file_contents()

boolean cache_file_contents ( const char *  filename)

◆ calc_aframeno()

void calc_aframeno ( int  fileno)

◆ calc_frame_from_time()

LIVES_INLINE int calc_frame_from_time ( int  filenum,
double  time 
)

nearest frame start

◆ calc_frame_from_time2()

LIVES_INLINE int calc_frame_from_time2 ( int  filenum,
double  time 
)

nearest frame end

◆ calc_frame_from_time3()

LIVES_INLINE int calc_frame_from_time3 ( int  filenum,
double  time 
)

nearest frame mid

◆ calc_maxspect()

void calc_maxspect ( int  rwidth,
int  rheight,
int *  cwidth,
int *  cheight 
)

◆ calc_new_playback_position()

int calc_new_playback_position ( int  fileno,
uint64_t  otc,
uint64_t *  ntc 
)

◆ calc_time_from_frame()

LIVES_INLINE double calc_time_from_frame ( int  clip,
int  frame 
)

◆ check_dev_busy()

boolean check_dev_busy ( char *  devstr)

◆ check_dir_access()

boolean check_dir_access ( const char *  dir)

◆ check_file()

boolean check_file ( const char *  file_name,
boolean  check_existing 
)

check if file exists

◆ check_for_bad_ffmpeg()

lives_cancel_t check_for_bad_ffmpeg ( void  )

◆ check_for_lock_file()

boolean check_for_lock_file ( const char *  set_name,
int  type 
)

◆ check_for_ratio_fps()

boolean check_for_ratio_fps ( double  fps)

◆ check_frame_count()

boolean check_frame_count ( int  idx)

◆ clear_lmap_errors()

void clear_lmap_errors ( void  )

◆ clear_mainw_msg()

LIVES_INLINE void clear_mainw_msg ( void  )

◆ clip_detail_to_string()

char* clip_detail_to_string ( lives_clip_details_t  what,
size_t *  maxlenp 
)

◆ count_opening_frames()

void count_opening_frames ( void  )

◆ create_event_space()

boolean create_event_space ( int  length)

◆ d_print()

void d_print ( const char *  fmt,
  ... 
)

◆ do_std_checks()

boolean do_std_checks ( const char *  type_name,
const char *  type,
size_t  maxlen,
const char *  nreject 
)

◆ draw_little_bars()

void draw_little_bars ( double  ptrtime)

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

◆ ensure_extension()

char* ensure_extension ( const char *  fname,
const char *  ext 
)

◆ ensure_isdir()

boolean ensure_isdir ( char *  fname)

◆ fastrand()

LIVES_INLINE uint32_t fastrand ( void  )

◆ fastsrand()

void fastsrand ( uint32_t  seed)

◆ filename_from_fd()

char* filename_from_fd ( char *  val,
int  fd 
)

◆ find_when_to_stop()

void find_when_to_stop ( void  )

◆ get_approx_ln()

LIVES_INLINE int get_approx_ln ( uint32_t  x)

◆ get_basename()

void get_basename ( char *  filename)

◆ get_clip_value()

boolean get_clip_value ( int  which,
lives_clip_details_t  what,
void *  retval,
size_t  maxlen 
)

◆ get_dir()

char* get_dir ( const char *  filename)

◆ get_dirname()

void get_dirname ( char *  filename)

◆ get_extension()

char* get_extension ( const char *  filename)

◆ get_file_size()

uint64_t get_file_size ( int  fd)

◆ get_filename()

void get_filename ( char *  filename,
boolean  strip_dir 
)

◆ get_frame_count()

void get_frame_count ( int  idx)

◆ get_frames_sizes()

void get_frames_sizes ( int  fileno,
int  frame 
)

◆ get_fs_free()

uint64_t get_fs_free ( const char *  dir)

◆ get_hex_digit()

int get_hex_digit ( const char *  c)

◆ get_image_ext_for_type()

LIVES_INLINE const char* get_image_ext_for_type ( lives_image_type_t  imgtype)

◆ get_interp_value()

LIVES_INLINE LiVESInterpType get_interp_value ( short  quality)

◆ get_location()

void get_location ( const char *  exe,
char *  val,
int  maxlen 
)

◆ get_menu_text()

void get_menu_text ( LiVESWidget *  menuitem,
char *  text 
)

◆ get_menu_text_long()

void get_menu_text_long ( LiVESWidget *  menuitem,
char *  text 
)

◆ get_next_free_file()

void get_next_free_file ( void  )

◆ get_play_times()

void get_play_times ( void  )

◆ get_ratio_fps()

double get_ratio_fps ( const char *  string)

◆ get_set_list()

LiVESList* get_set_list ( const char *  dir,
boolean  utf8 
)

◆ get_signed_endian()

uint32_t get_signed_endian ( boolean  is_signed,
boolean  little_endian 
)

◆ get_storage_status()

lives_storage_status_t get_storage_status ( const char *  dir,
uint64_t  warn_level,
uint64_t *  dsval 
)

◆ get_token_count()

int get_token_count ( const char *  string,
int  delim 
)

◆ get_total_time()

void get_total_time ( lives_clip_t file)

◆ get_val_from_cached_list()

char* get_val_from_cached_list ( const char *  key,
size_t  maxlen 
)

◆ get_version_hash()

uint64_t get_version_hash ( const char *  exe,
const char *  sep,
int  piece 
)

get version hash output for an executable from the backend

◆ hextodec()

int hextodec ( char *  string)

◆ init_clipboard()

void init_clipboard ( void  )

◆ insert_newlines()

char* insert_newlines ( const char *  text,
int  maxwidth 
)

< we will insert a nl here

◆ int_array_contains_value()

LIVES_INLINE boolean int_array_contains_value ( int *  array,
int  num_elems,
int  value 
)

◆ is_legal_set_name()

boolean is_legal_set_name ( const char *  set_name,
boolean  allow_dupes 
)

◆ is_realtime_aplayer()

LIVES_INLINE boolean is_realtime_aplayer ( int  ptype)

◆ is_writeable_dir()

boolean is_writeable_dir ( const char *  dir)

◆ LEFloat_to_BEFloat()

LIVES_INLINE float LEFloat_to_BEFloat ( float  f)

◆ lives_10pow()

LIVES_INLINE uint64_t lives_10pow ( int  pow)

◆ lives_alarm_clear()

void lives_alarm_clear ( int  alarm_handle)

◆ lives_alarm_get()

boolean lives_alarm_get ( int  alarm_handle)

◆ lives_alarm_set()

int lives_alarm_set ( int64_t  ticks)

set alarm for now + delta ticks (10 nanosec) param ticks (10 nanoseconds) is the offset when we want our alarm to trigger returns int handle or -1 call lives_get_alarm(handle) to test if time arrived

◆ lives_cat()

int lives_cat ( const char *  from,
const char *  to,
boolean  append 
)

◆ lives_chdir()

int lives_chdir ( const char *  path,
boolean  allow_fail 
)

◆ lives_chmod()

int lives_chmod ( const char *  target,
const char *  mode 
)

◆ lives_close_all_file_buffers()

void lives_close_all_file_buffers ( void  )

◆ lives_close_buffered()

int lives_close_buffered ( int  fd)

◆ lives_cp()

int lives_cp ( const char *  from,
const char *  to 
)

◆ lives_cp_keep_perms()

int lives_cp_keep_perms ( const char *  from,
const char *  to 
)

◆ lives_creat_buffered()

LIVES_INLINE int lives_creat_buffered ( const char *  pathname,
int  mode 
)

◆ lives_echo()

int lives_echo ( const char *  text,
const char *  to,
boolean  append 
)

◆ lives_fgets()

char* lives_fgets ( char *  s,
int  size,
FILE *  stream 
)

◆ lives_fix()

LIVES_INLINE double lives_fix ( double  val,
int  decimals 
)

◆ lives_fork()

lives_pgid_t lives_fork ( const char *  com)

◆ lives_format_storage_space_string()

char* lives_format_storage_space_string ( uint64_t  space)

◆ lives_fputs()

int lives_fputs ( const char *  s,
FILE *  stream 
)

◆ lives_freep()

LIVES_INLINE boolean lives_freep ( void **  ptr)

◆ lives_fsync()

LIVES_INLINE boolean lives_fsync ( int  fd)

◆ lives_get_current_ticks()

LIVES_INLINE int64_t lives_get_current_ticks ( void  )

return current (wallclock) time in ticks (units of 10 nanoseconds)

◆ lives_getgid()

LIVES_INLINE int lives_getgid ( void  )

◆ lives_getpid()

LIVES_INLINE pid_t lives_getpid ( void  )

◆ lives_getuid()

LIVES_INLINE int lives_getuid ( void  )

◆ lives_image_ext_to_type()

LIVES_INLINE lives_image_type_t lives_image_ext_to_type ( const char *  img_ext)

◆ lives_image_type_to_image_type()

LIVES_INLINE lives_image_type_t lives_image_type_to_image_type ( const char *  lives_img_type)

◆ lives_kill()

LIVES_INLINE int lives_kill ( lives_pid_t  pid,
int  sig 
)

◆ lives_kill_subprocesses()

void lives_kill_subprocesses ( const char *  dirname,
boolean  kill_parent 
)

◆ lives_killpg()

LIVES_INLINE int lives_killpg ( lives_pgid_t  pgrp,
int  sig 
)

◆ lives_list_append_unique()

LIVES_INLINE LiVESList* lives_list_append_unique ( LiVESList *  xlist,
const char *  add 
)

◆ lives_list_copy_strings()

LiVESList* lives_list_copy_strings ( LiVESList *  list)

◆ lives_list_delete_string()

LiVESList* lives_list_delete_string ( LiVESList *  list,
char *  string 
)

◆ lives_list_free_all()

LIVES_INLINE void lives_list_free_all ( LiVESList **  list)

◆ lives_list_free_strings()

LIVES_INLINE void lives_list_free_strings ( LiVESList *  list)

◆ lives_list_move_to_first()

LIVES_INLINE LiVESList* lives_list_move_to_first ( LiVESList *  list,
LiVESList *  item 
)

◆ lives_list_strcmp_index()

int lives_list_strcmp_index ( LiVESList *  list,
livesconstpointer  data 
)

◆ lives_ln()

int lives_ln ( const char *  from,
const char *  to 
)

◆ lives_lseek_buffered_rdonly()

off_t lives_lseek_buffered_rdonly ( int  fd,
off_t  offset 
)

◆ lives_mv()

int lives_mv ( const char *  from,
const char *  to 
)

◆ lives_open2()

LIVES_INLINE int lives_open2 ( const char *  pathname,
int  flags 
)

◆ lives_open3()

LIVES_INLINE int lives_open3 ( const char *  pathname,
int  flags,
mode_t  mode 
)

◆ lives_open_buffered_rdonly()

LIVES_INLINE int lives_open_buffered_rdonly ( const char *  pathname)

◆ lives_random()

LIVES_INLINE uint64_t lives_random ( void  )

◆ lives_read()

ssize_t lives_read ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)

◆ lives_read_buffered()

ssize_t lives_read_buffered ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)

◆ lives_read_le()

ssize_t lives_read_le ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)

◆ lives_read_le_buffered()

ssize_t lives_read_le_buffered ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)

◆ lives_readlink()

LIVES_INLINE ssize_t lives_readlink ( const char *  path,
char *  buf,
size_t  bufsiz 
)

◆ lives_rm()

int lives_rm ( const char *  file)

◆ lives_rmdir()

int lives_rmdir ( const char *  dir,
boolean  force 
)

◆ lives_rmdir_with_parents()

int lives_rmdir_with_parents ( const char *  dir)

◆ lives_rmglob()

int lives_rmglob ( const char *  files)

◆ lives_setenv()

LIVES_INLINE boolean lives_setenv ( const char *  name,
const char *  value 
)

◆ lives_slist_free_all()

LIVES_INLINE void lives_slist_free_all ( LiVESSList **  list)

◆ lives_srandom()

LIVES_INLINE void lives_srandom ( unsigned int  seed)

◆ lives_strappend()

LIVES_INLINE char* lives_strappend ( char *  string,
int  len,
const char *  xnew 
)

◆ lives_suspend_resume_process()

void lives_suspend_resume_process ( const char *  dirname,
boolean  suspend 
)

◆ lives_sync()

LIVES_INLINE void lives_sync ( void  )

◆ lives_system()

int lives_system ( const char *  com,
boolean  allow_error 
)

◆ lives_touch()

int lives_touch ( const char *  tfile)

◆ lives_utf8_strcasecmp()

int lives_utf8_strcasecmp ( const char *  s1,
const char *  s2 
)

◆ lives_write()

ssize_t lives_write ( int  fd,
const void *  buf,
size_t  count,
boolean  allow_fail 
)

◆ lives_write_buffered()

ssize_t lives_write_buffered ( int  fd,
const char *  buf,
size_t  count,
boolean  allow_fail 
)

◆ lives_write_le()

ssize_t lives_write_le ( int  fd,
const void *  buf,
size_t  count,
boolean  allow_fail 
)

◆ lives_write_le_buffered()

ssize_t lives_write_le_buffered ( int  fd,
const void *  buf,
size_t  count,
boolean  allow_fail 
)

◆ make_image_file_name()

LIVES_INLINE char* make_image_file_name ( lives_clip_t sfile,
int  frame,
const char *  img_ext 
)

◆ make_version_hash()

uint64_t make_version_hash ( const char *  ver)

convert a version to uint64_t hash, for comparing

◆ minimise_aspect_delta()

void minimise_aspect_delta ( double  aspect,
int  hblock,
int  vblock,
int  hsize,
int  vsize,
int *  width,
int *  height 
)

◆ myround()

LIVES_INLINE int myround ( double  n)

◆ prepare_to_play_foreign()

boolean prepare_to_play_foreign ( void  )

◆ reget_afilesize()

void reget_afilesize ( int  fileno)

◆ remove_layout_files()

void remove_layout_files ( LiVESList *  map)

◆ remove_trailing_zeroes()

char* remove_trailing_zeroes ( double  val)

◆ repl_workdir()

char* repl_workdir ( const char *  entry,
boolean  fwd 
)

◆ reset_clipmenu()

void reset_clipmenu ( void  )

◆ save_clip_value()

void save_clip_value ( int  which,
lives_clip_details_t  what,
void *  val 
)

◆ set_menu_text()

void set_menu_text ( LiVESWidget *  menuitem,
const char *  text,
boolean  use_mnemonic 
)

◆ set_redoable()

void set_redoable ( const char *  what,
boolean  sensitive 
)

◆ set_sel_label()

void set_sel_label ( LiVESWidget *  sel_label)

◆ set_undoable()

void set_undoable ( const char *  what,
boolean  sensitive 
)

◆ sget_file_size()

uint64_t sget_file_size ( const char *  name)

◆ show_manual_section()

void show_manual_section ( const char *  lang,
const char *  section 
)

◆ string_lists_differ()

boolean string_lists_differ ( LiVESList *  alist,
LiVESList *  blist 
)

◆ subst()

char* subst ( const char *  string,
const char *  from,
const char *  to 
)

◆ switch_aud_to_jack()

boolean switch_aud_to_jack ( void  )

◆ switch_aud_to_mplayer()

void switch_aud_to_mplayer ( boolean  set_in_prefs)

◆ switch_aud_to_mplayer2()

void switch_aud_to_mplayer2 ( boolean  set_in_prefs)

◆ switch_aud_to_pulse()

boolean switch_aud_to_pulse ( void  )

◆ switch_aud_to_sox()

void switch_aud_to_sox ( boolean  set_in_prefs)

◆ verhash()

int verhash ( char *  version)

◆ wait_for_bg_audio_sync()

void wait_for_bg_audio_sync ( lives_clip_t sfile)

◆ zero_spinbuttons()

void zero_spinbuttons ( void  )