File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 24
24
extern "C" {
25
25
#endif
26
26
27
+ /**
28
+ * @brief **libbpf_major_version()** provides the major version of libbpf.
29
+ * @return An integer, the major version number
30
+ */
27
31
LIBBPF_API __u32 libbpf_major_version (void );
32
+
33
+ /**
34
+ * @brief **libbpf_minor_version()** provides the minor version of libbpf.
35
+ * @return An integer, the minor version number
36
+ */
28
37
LIBBPF_API __u32 libbpf_minor_version (void );
38
+
39
+ /**
40
+ * @brief **libbpf_version_string()** provides the version of libbpf in a
41
+ * human-readable form, e.g., "v1.7".
42
+ * @return Pointer to a static string containing the version
43
+ *
44
+ * The format is *not* a part of a stable API and may change in the future.
45
+ */
29
46
LIBBPF_API const char * libbpf_version_string (void );
30
47
31
48
enum libbpf_errno {
@@ -49,6 +66,14 @@ enum libbpf_errno {
49
66
__LIBBPF_ERRNO__END ,
50
67
};
51
68
69
+ /**
70
+ * @brief **libbpf_strerror()** converts the provided error code into a
71
+ * human-readable string.
72
+ * @param err The error code to convert
73
+ * @param buf Pointer to a buffer where the error message will be stored
74
+ * @param size The number of bytes in the buffer
75
+ * @return 0, on success; negative error code, otherwise
76
+ */
52
77
LIBBPF_API int libbpf_strerror (int err , char * buf , size_t size );
53
78
54
79
/**
You can’t perform that action at this time.
0 commit comments