From 69aa6e0ee0ca36bd8ea77135b62c4aac59c30f99 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 14 Jul 2010 20:14:01 -0600 Subject: Don't expose the contents of struct dmnsn_progress. --- libdimension/dimension/progress.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'libdimension/dimension') diff --git a/libdimension/dimension/progress.h b/libdimension/dimension/progress.h index 8b20ba0..0a7dce2 100644 --- a/libdimension/dimension/progress.h +++ b/libdimension/dimension/progress.h @@ -28,29 +28,7 @@ #ifndef DIMENSION_PROGRESS_H #define DIMENSION_PROGRESS_H -#include - -/* 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; - -typedef struct { - /* Array of progress elements. Progress is given by P(0), where - P(i) = (elements[i].progress + P(i + 1))/elements[i].total. */ - dmnsn_array *elements; - - /* The worker thread */ - pthread_t thread; - - /* Read-write synchronization */ - pthread_rwlock_t *rwlock; - - /* Condition variable for waiting for a particular amount of progress */ - pthread_cond_t *cond; - pthread_mutex_t *mutex; -} dmnsn_progress; +typedef struct dmnsn_progress dmnsn_progress; /* Allocate a new progress object */ dmnsn_progress *dmnsn_new_progress(); -- cgit v1.2.3