After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731369 - libostree: Make several APIs explicitly private
libostree: Make several APIs explicitly private
Status: RESOLVED FIXED
Product: ostree
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: OSTree maintainer(s)
OSTree maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-06-08 12:06 UTC by Colin Walters
Modified: 2014-06-09 18:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libostree: Make OstreeLibarchiveInputStream explicitly private (4.71 KB, patch)
2014-06-08 12:06 UTC, Colin Walters
committed Details | Review
libostree: Make OstreeTlsCertInteraction explicitly private (4.07 KB, patch)
2014-06-08 12:07 UTC, Colin Walters
committed Details | Review
libostree: Make OstreeFetcher explicitly private (14.54 KB, patch)
2014-06-08 12:07 UTC, Colin Walters
committed Details | Review
libostree: Remove leftover Author: tag (1.04 KB, patch)
2014-06-09 18:03 UTC, Colin Walters
rejected Details | Review

Description Colin Walters 2014-06-08 12:06:54 UTC
Right now we export all symbols starting with ostree_, so fix several
internal APIs that should be private to be prefixed with '_'.
Comment 1 Colin Walters 2014-06-08 12:06:56 UTC
Created attachment 278096 [details] [review]
libostree: Make OstreeLibarchiveInputStream explicitly private

We weren't installing the headers, but at the moment all symbols
starting with ostree_ were being exported.  Fix that by prefixing
non-static symbols with '_'.
Comment 2 Colin Walters 2014-06-08 12:07:03 UTC
Created attachment 278097 [details] [review]
libostree: Make OstreeTlsCertInteraction explicitly private

Similar to previous commit, this should be private.
Comment 3 Colin Walters 2014-06-08 12:07:07 UTC
Created attachment 278098 [details] [review]
libostree: Make OstreeFetcher explicitly private

Per previous commit.  We're not attempting to export an HTTP to
clients, the high level API is ostree_repo_pull().
Comment 4 Jasper St. Pierre (not reading bugmail) 2014-06-09 17:57:01 UTC
Review of attachment 278096 [details] [review]:

::: src/libostree/ostree-libarchive-input-stream.h
@@ -18,3 @@
  * Boston, MA 02111-1307, USA.
- *
- * Author: Alexander Larsson <alexl@redhat.com>

Bad Colin.
Comment 5 Jasper St. Pierre (not reading bugmail) 2014-06-09 17:57:24 UTC
Review of attachment 278097 [details] [review]:

OK.
Comment 6 Colin Walters 2014-06-09 17:59:28 UTC
(In reply to comment #4)
> Review of attachment 278096 [details] [review]:
> 
> ::: src/libostree/ostree-libarchive-input-stream.h
> @@ -18,3 @@
>   * Boston, MA 02111-1307, USA.
> - *
> - * Author: Alexander Larsson <alexl@redhat.com>
> 
> Bad Colin.

Yeah, I'll separate that out as a separate commit.
Comment 7 Jasper St. Pierre (not reading bugmail) 2014-06-09 17:59:44 UTC
Review of attachment 278098 [details] [review]:

You aren't reindenting anything. You decide if that's OK.
Comment 8 Colin Walters 2014-06-09 18:03:01 UTC
Created attachment 278157 [details] [review]
libostree: Remove leftover Author: tag

I copied the structure of the header file from GIO, but there's really
nothing left from there, and I'm trying to get away from the Author:
tag as git is a much better record of who actually authored code.
Comment 9 Colin Walters 2014-06-09 18:03:36 UTC
Review of attachment 278157 [details] [review]:

Nevermind, this is a separate bug.
Comment 10 Colin Walters 2014-06-09 18:04:34 UTC
(In reply to comment #7)
> Review of attachment 278098 [details] [review]:
> 
> You aren't reindenting anything. You decide if that's OK.

Yeah...for stuff like this it bloats the diffs too much for review I feel - I tend to go by and fix up the indentation later as I'm editing the code.
Comment 11 Colin Walters 2014-06-09 18:06:09 UTC
Attachment 278096 [details] pushed as 9f73449 - libostree: Make OstreeLibarchiveInputStream explicitly private
Attachment 278097 [details] pushed as 4ce93db - libostree: Make OstreeTlsCertInteraction explicitly private
Attachment 278098 [details] pushed as 24c64d6 - libostree: Make OstreeFetcher explicitly private