Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68c19fd3 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: closeFileDescrpitors private

This is an implementation detail.

Bug: N/A
Test: N/A
Change-Id: Id40f9432ac25bd85f4404a0bd3a63cf15465db8d
parent bad4c6e2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -637,9 +637,6 @@ public:

    LIBBINDER_EXPORTED const flat_binder_object* readObject(bool nullMetaData) const;

    // Explicitly close all file descriptors in the parcel.
    LIBBINDER_EXPORTED void closeFileDescriptors();

    // Debugging: get metrics on current allocations.
    LIBBINDER_EXPORTED static size_t getGlobalAllocSize();
    LIBBINDER_EXPORTED static size_t getGlobalAllocCount();
@@ -652,6 +649,9 @@ public:
    LIBBINDER_EXPORTED void print(std::ostream& to, uint32_t flags = 0) const;

private:
    // Explicitly close all file descriptors in the parcel.
    void closeFileDescriptors();

    // `objects` and `objectsSize` always 0 for RPC Parcels.
    typedef void (*release_func)(const uint8_t* data, size_t dataSize, const binder_size_t* objects,
                                 size_t objectsSize);