lib/remote: Add arguments to internal OstreeRemote constructor

Add a name argument to the internal OstreeRemote constructor,
since this member (and several derived from it) is non-nullable,
and hence must always be set at construction time.

This changes the only call sites of the constructor to use the new API,
which is internal.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #875
Approved by: cgwalters
This commit is contained in:
Philip Withnall authored and Atomic Bot committed 2017-05-19 15:01:59 +00:00
1 parent 2910b88081
commit ed7905d000
3 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ struct OstreeRemote {
};
G_GNUC_INTERNAL
OstreeRemote *ostree_remote_new (void);
OstreeRemote *ostree_remote_new (const gchar *name);
G_GNUC_INTERNAL
OstreeRemote *ostree_remote_new_from_keyfile (GKeyFile *keyfile,