summaryrefslogtreecommitdiffstats
path: root/libdimension/progress.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-07-14 20:14:01 -0600
committerTavian Barnes <tavianator@gmail.com>2010-07-14 20:21:53 -0600
commit69aa6e0ee0ca36bd8ea77135b62c4aac59c30f99 (patch)
tree38345886d75deb51ef3011ea92326ae39da84d81 /libdimension/progress.c
parentdda43d0adc1fb7323a6578f61565275694364bbd (diff)
downloaddimension-69aa6e0ee0ca36bd8ea77135b62c4aac59c30f99.tar.xz
Don't expose the contents of struct dmnsn_progress.
Diffstat (limited to 'libdimension/progress.c')
-rw-r--r--libdimension/progress.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libdimension/progress.c b/libdimension/progress.c
index 810920b..9d51d8d 100644
--- a/libdimension/progress.c
+++ b/libdimension/progress.c
@@ -18,9 +18,15 @@
* <http://www.gnu.org/licenses/>. *
*************************************************************************/
-#include "dimension.h"
+#include "dimension_impl.h"
#include <pthread.h>
+/* A single element in an array for dmnsn_progress. Progress of this item is
+ progress/total. */
+typedef struct {
+ unsigned int progress, total;
+} dmnsn_progress_element;
+
/* For thread synchronization */
static void dmnsn_progress_rdlock(const dmnsn_progress *progress);
static void dmnsn_progress_wrlock(dmnsn_progress *progress);