~gnaservicesinc/vanquita/trunk

« back to all changes in this revision

Viewing changes to src/playlist.h

  • Committer: GNAServicesInc
  • Date: 2014-01-13 23:29:31 UTC
  • Revision ID: andrew@gnaservicesinc.com-20140113232931-09mmd3502b3xxpk0
Initial Release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-  */
 
2
/********************************************************************************* 
 
3
 *     COPYRIGHT NOTICE:
 
4
 *     Copyright © 2014  Andrew Smith (GNA SERVICES INC)<Andrew@GNAServicesInc.com>
 
5
 *     All Rights Reserved.
 
6
 *
 
7
 *   This file, playlist.h, is part of Vaquita.
 
8
 *
 
9
 *   Vaquita is free software: you can redistribute it and/or modify
 
10
 *   it under the terms of the GNU General Public License as published by
 
11
 *   the Free Software Foundation, either version 3 of the License, or
 
12
 *  (at your option) any later version.
 
13
 *
 
14
 *   Vaquita is distributed in the hope that it will be useful,
 
15
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 *   GNU General Public License for more details.
 
18
 *
 
19
 *  You should have received a copy of the GNU General Public License
 
20
 *  along with tpad.  If not, see <http://www.gnu.org/licenses/>.
 
21
 ********************************************************************************/
 
22
 
 
23
#ifndef PLAYLIST_H
 
24
#define PLAYLIST_H
 
25
#include <stdio.h>
 
26
#include <unistd.h>
 
27
#include <gtk/gtk.h>
 
28
#include <dirent.h>
 
29
#include <gdk/gdk.h>
 
30
#include <glib/gstdio.h>
 
31
#include <gdk/gdkkeysyms.h>
 
32
#include <glib/gprintf.h>
 
33
#include <stdlib.h>
 
34
#include <string.h>
 
35
#include <ctype.h>
 
36
#include <libconfig.h>
 
37
#include <unistd.h>
 
38
#include <pwd.h>
 
39
#include <sys/stat.h>
 
40
#include <sys/syscall.h>
 
41
#include <sys/types.h>
 
42
#include <libintl.h>
 
43
#include <wchar.h>
 
44
#include <glib.h>
 
45
#include <glib/gi18n.h>
 
46
#include <gst/gst.h>
 
47
#include <stdbool.h>
 
48
#include <sys/wait.h>
 
49
#include <sys/time.h>
 
50
#include <time.h>
 
51
#include <stdio.h>
 
52
#include <string.h>
 
53
#include <assert.h>
 
54
#include <zlib.h>
 
55
#include <errno.h>
 
56
#define _FILE_PATH 1
 
57
#define _FILE_TITLE 2
 
58
#define _FILE_RATEING 3
 
59
 
 
60
#define ENTRY_MAX 99999
 
61
typedef struct {
 
62
         gchar* filename;
 
63
         gchar* title;
 
64
         gint rateing;
 
65
} _playlistElements;
 
66
 
 
67
gboolean remove_file(gchar* file);
 
68
void pre_write_backup();
 
69
void playlist_write_header();
 
70
void read_in_playlist();
 
71
void clean_playlist();
 
72
gboolean playlist_builder_init();
 
73
void write_element(gchar* file, gchar* name, gint rateing);
 
74
void zerr(gint ret);
 
75
gint inf(FILE *source, FILE *dest);
 
76
gint def(FILE *source, FILE *dest, gint level);
 
77
void playlist_on_exit();
 
78
#endif
 
 
b'\\ No newline at end of file'