/*
* CINELERRA
* Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
+ * Copyright (C) 2003-2016 Cinelerra CV contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include <stdio.h>
#include <stdint.h>
+#include <time.h>
#include "apatchgui.h"
#include "arraylist.h"
void crop_video(int mode);
void update_plugins();
void get_backup_path(char *path, int len);
+ void create_timestamped_copy_from_previous_backup(char *previouspath);
// Call after every edit operation
void save_backup();
void load_backup();
const char *plug_dir, const char *plug_path);
static void init_plugin_index(MWindow *mwindow, Preferences *preferences,
FILE *fp, const char *plugin_dir);
- static int init_ladspa_index(MWindow *mwindow, Preferences *preferences,
- FILE *fp, const char *plugin_dir);
static void scan_plugin_index(MWindow *mwindow, Preferences *preferences,
FILE *fp, const char *plug_dir, const char *plug_path, int &idx);
static void init_ffmpeg();
static void init_ffmpeg_index(MWindow *mwindow, Preferences *preferences, FILE *fp);
- static int load_plugin_index(MWindow *mwindow, FILE *fp, const char *plugin_dir);
+ static int load_plugin_index(MWindow *mwindow, FILE *fp, const char *plugin_dir, const char *index_id);
static PluginServer *new_ffmpeg_server(MWindow *mwindow, const char *name);
static int init_lv2_index(MWindow *mwindow, Preferences *preferences, FILE *fp);
static PluginServer *new_lv2_server(MWindow *mwindow, const char *name);
int get_cpus();
//
void clean_indexes();
+ void clean_backups();
// TimeBomb timebomb;
SigHandler *sighandler;
int restart_status;