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

Commit 5dbcae50 authored by Ruchir Rastogi's avatar Ruchir Rastogi
Browse files

Expose libstatssocket as a stable C API

We create a .map.txt file that lists all the stable entry points into
libstatssocket. This should allow other APEXes to link to libstatssocket
without having to copy the library within the APEX.

Test: m -j libstatssocket
Bug: 146377784
Change-Id: I9f77a0c380b6884d9ca60807a8974380420cfe0a
parent c9d8d2b7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -40,6 +40,14 @@ cc_library {
        "libcutils",
        "liblog",
    ],

    // enumerate stable entry points for APEX use
    stubs: {
        symbol_file: "libstatssocket.map.txt",
        versions: [
            "1",
        ],
    }
}

cc_library_headers {
+23 −0
Original line number Diff line number Diff line
LIBSTATSSOCKET {
    global:
        stats_event_obtain; # apex # introduced=1
        stats_event_build; # apex # introduced=1
        stats_event_write; # apex # introduced=1
        stats_event_release; # apex # introduced=1
        stats_event_set_atom_id; # apex # introduced=1
        stats_event_write_int32; # apex # introduced=1
        stats_event_write_int64; # apex # introduced=1
        stats_event_write_float; # apex # introduced=1
        stats_event_write_bool; # apex # introduced=1
        stats_event_write_byte_array; # apex # introduced=1
        stats_event_write_string8; # apex # introduced=1
        stats_event_write_attribution_chain; # apex # introduced=1
        stats_event_write_key_value_pairs; # apex # introduced=1
        stats_event_add_bool_annotation; # apex # introduced=1
        stats_event_add_int32_annotation; # apex # introduced=1
        stats_event_get_atom_id; # apex # introduced=1
        stats_event_get_buffer; # apex # introduced=1
        stats_event_get_errors; # apex # introduced=1
    local:
        *;
};