Permalink
Browse files
Add the required data structure for snapshot
- Loading branch information
Showing
with
13 additions
and
0 deletions.
-
+13
−0
src/cregistry/entry.h
|
|
@@ -47,6 +47,19 @@ typedef struct { |
|
|
char* variant_sign; |
|
|
} variant; |
|
|
|
|
|
typedef struct { |
|
|
char* name; |
|
|
int requested; |
|
|
char* state; |
|
|
variant* variants; |
|
|
} port; |
|
|
|
|
|
typedef struct { |
|
|
char* id; |
|
|
char* note; |
|
|
port* ports; |
|
|
} reg_snapshot; |
|
|
|
|
|
reg_entry* reg_entry_create(reg_registry* reg, char* name, char* version, |
|
|
char* revision, char* variants, char* epoch, reg_error* errPtr); |
|
|
|
|
|
|