aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-12 18:00:39 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-12 18:00:39 +0100
commit67f859104e0c89afc8263bb49173a5e9835d2c24 (patch)
tree94f863c0fde505ed6681e591afebe1c51501b713 /src/set/gnunet-service-set.h
parenta2ac01f46c4d57034b5d40201b29701ff95b456a (diff)
downloadgnunet-67f859104e0c89afc8263bb49173a5e9835d2c24.tar.gz
gnunet-67f859104e0c89afc8263bb49173a5e9835d2c24.zip
de-duplicate operation types
Diffstat (limited to 'src/set/gnunet-service-set.h')
-rw-r--r--src/set/gnunet-service-set.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/set/gnunet-service-set.h b/src/set/gnunet-service-set.h
index c981430ef..86313d179 100644
--- a/src/set/gnunet-service-set.h
+++ b/src/set/gnunet-service-set.h
@@ -345,27 +345,6 @@ struct Listener;
345 345
346 346
347/** 347/**
348 * Possible set operations.
349 */
350enum OperationType {
351 /**
352 * Operation type unknown.
353 */
354 OT_UNKNOWN = 0,
355
356 /**
357 * We are performing a union.
358 */
359 OT_UNION,
360
361 /**
362 * We are performing an intersection.
363 */
364 OT_INTERSECTION
365};
366
367
368/**
369 * Operation context used to execute a set operation. 348 * Operation context used to execute a set operation.
370 */ 349 */
371struct Operation 350struct Operation
@@ -429,9 +408,9 @@ struct Operation
429 struct GNUNET_SCHEDULER_Task *timeout_task; 408 struct GNUNET_SCHEDULER_Task *timeout_task;
430 409
431 /** 410 /**
432 * What type of operation is this? 411 * The type of the operation.
433 */ 412 */
434 enum OperationType type; 413 enum GNUNET_SET_OperationType operation;
435 414
436 /** 415 /**
437 * Unique request id for the request from a remote peer, sent to the 416 * Unique request id for the request from a remote peer, sent to the
@@ -589,11 +568,6 @@ struct Set
589 struct Operation *ops_tail; 568 struct Operation *ops_tail;
590 569
591 /** 570 /**
592 * What type of operation is this set for?
593 */
594 enum OperationType type;
595
596 /**
597 * Current generation, that is, number of previously executed 571 * Current generation, that is, number of previously executed
598 * operations and lazy copies on the underlying set content. 572 * operations and lazy copies on the underlying set content.
599 */ 573 */