From 4a6ab37591deeb7b660b001b942e7ec887491a82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 8 May 2014 16:25:55 +0100 Subject: [PATCH] sparsefile: sprinkle G_BEGIN_DECLS / G_END_DECLS for c++, and remove outdated comment, and add new unit test to .gitignore. --- libs/gst/base/gstsparsefile.c | 2 -- libs/gst/base/gstsparsefile.h | 8 +++++--- tests/check/libs/.gitignore | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libs/gst/base/gstsparsefile.c b/libs/gst/base/gstsparsefile.c index f0fe948..9192677 100644 --- a/libs/gst/base/gstsparsefile.c +++ b/libs/gst/base/gstsparsefile.c @@ -1,8 +1,6 @@ /* GStreamer * Copyright (C) 2014 Wim Taymans * - * gstcahcefile.c: - * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either diff --git a/libs/gst/base/gstsparsefile.h b/libs/gst/base/gstsparsefile.h index d1b9bc1..68dd8a7 100644 --- a/libs/gst/base/gstsparsefile.h +++ b/libs/gst/base/gstsparsefile.h @@ -1,8 +1,6 @@ /* GStreamer * Copyright (C) 2014 Wim Taymans * - * gstcahcefile.h: - * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either @@ -24,6 +22,8 @@ #ifndef __GST_SPARSE_FILE_H__ #define __GST_SPARSE_FILE_H__ +G_BEGIN_DECLS + typedef struct _GstSparseFile GstSparseFile; GstSparseFile * gst_sparse_file_new (void); @@ -47,11 +47,13 @@ gsize gst_sparse_file_read (GstSparseFile *file, GError **error); guint gst_sparse_file_n_ranges (GstSparseFile *file); + gboolean gst_sparse_file_get_range_before (GstSparseFile *file, gsize offset, gsize *start, gsize *stop); + gboolean gst_sparse_file_get_range_after (GstSparseFile *file, gsize offset, gsize *start, gsize *stop); - +G_END_DECLS #endif /* __GST_SPARSE_FILE_H__ */ diff --git a/tests/check/libs/.gitignore b/tests/check/libs/.gitignore index 2bebac3..988f2af 100644 --- a/tests/check/libs/.gitignore +++ b/tests/check/libs/.gitignore @@ -17,6 +17,7 @@ gstnetclientclock gstnettimeprovider gsttestclock libsabi +sparsefile transform1 typefindhelper queuearray -- 2.7.4