aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-30 09:56:19 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-30 09:56:19 +0200
commit53c90532c1bdb69ac2eac6a6f20581916014a91f (patch)
tree22c9fbe26d9388fe1b5a6dcde4766a01fc006a7c
parent3043c0599aa494aba462771832f3e2cbe6616646 (diff)
downloadgnunet-53c90532c1bdb69ac2eac6a6f20581916014a91f.tar.gz
gnunet-53c90532c1bdb69ac2eac6a6f20581916014a91f.zip
pq: -improve comments on oid-map
-rw-r--r--src/pq/pq.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/pq/pq.h b/src/pq/pq.h
index 46d749fcc..65b72cedd 100644
--- a/src/pq/pq.h
+++ b/src/pq/pq.h
@@ -100,16 +100,20 @@ struct GNUNET_PQ_Context
100 enum GNUNET_PQ_Options flags; 100 enum GNUNET_PQ_Options flags;
101 101
102 /** 102 /**
103 * Mapping between array types and Oid's, filled at reconnect 103 * Mapping between array types and Oid's, pre-filled at reconnect.
104 * More entries are captured in via GNUNET_PQ_get_oid_by_name.
104 */ 105 */
105 struct 106 struct
106 { 107 {
107 /* allocated number of elements array @table */ 108 /* Allocated number of elements array the table */
108 unsigned int cap; 109 unsigned int cap;
109 110
110 /* number of entries in @table */ 111 /* Number of entries in the table */
111 unsigned int num; 112 unsigned int num;
112 113
114 /* The table of (name, oid) pairs.
115 * Note that the names are 'const char *' and the pointers should be point
116 * to the same string throughout the lifetime of the program.*/
113 struct name2oid 117 struct name2oid
114 { 118 {
115 const char *name; 119 const char *name;