You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

json-c.sym 3.8 kB

build: Add symbol versions to all exported symbols With this version script, newly-linked binaries that depend on the json-c shared library will refer to its symbols in a versioned form, preventing their references from being resolved to a symbol of the same name exported by json-glib or libjansson if those libraries appear in dependency search order before json-c, which will usually result in a crash. This is necessary because ELF symbol resolution normally uses a single flat namespace, not a tree like Windows symbol resolution. At least one symbol (json_object_iter_next()) is exported by all three JSON libraries. Linking with -Bsymbolic is not enough to have this effect in all cases, because -Bsymbolic only affects symbol lookup within a shared object, for example when json_object_set_serializer() calls json_object_set_userdata(). It does not affect calls from external code into json-c, unless json-c was statically linked into the external caller. This change will also not prevent code that depends on json-glib or libjansson from finding json-c's symbols and crashing; to prevent that, a corresponding change in json-glib or libjansson would be needed. Adding a symbol-version is a backwards-compatible change, but once added, removing or changing the symbol-version on a symbol would be an incompatible change that requires a SONAME bump. Resolves: https://github.com/json-c/json-c/issues/621 (when combined with an equivalent change to libjansson). Signed-off-by: Simon McVittie <smcv@collabora.com>
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. JSONC_0.14 {
  2. global:
  3. _json_c_set_last_err;
  4. _json_c_strerror;
  5. _json_c_strerror_enable;
  6. array_list_add;
  7. array_list_bsearch;
  8. array_list_del_idx;
  9. array_list_free;
  10. array_list_get_idx;
  11. array_list_length;
  12. array_list_new;
  13. array_list_put_idx;
  14. array_list_sort;
  15. json_c_get_random_seed;
  16. json_c_object_sizeof;
  17. json_c_set_serialization_double_format;
  18. json_c_shallow_copy_default;
  19. json_c_version;
  20. json_c_version_num;
  21. json_c_visit;
  22. json_global_set_string_hash;
  23. json_hex_chars;
  24. json_number_chars;
  25. json_object_array_add;
  26. json_object_array_bsearch;
  27. json_object_array_del_idx;
  28. json_object_array_get_idx;
  29. json_object_array_length;
  30. json_object_array_put_idx;
  31. json_object_array_sort;
  32. json_object_deep_copy;
  33. json_object_double_to_json_string;
  34. json_object_equal;
  35. json_object_free_userdata;
  36. json_object_from_fd;
  37. json_object_from_fd_ex;
  38. json_object_from_file;
  39. json_object_get;
  40. json_object_get_array;
  41. json_object_get_boolean;
  42. json_object_get_double;
  43. json_object_get_int64;
  44. json_object_get_int;
  45. json_object_get_object;
  46. json_object_get_string;
  47. json_object_get_string_len;
  48. json_object_get_type;
  49. json_object_get_uint64;
  50. json_object_get_userdata;
  51. json_object_int_inc;
  52. json_object_is_type;
  53. json_object_iter_begin;
  54. json_object_iter_end;
  55. json_object_iter_equal;
  56. json_object_iter_init_default;
  57. json_object_iter_next;
  58. json_object_iter_peek_name;
  59. json_object_iter_peek_value;
  60. json_object_new_array;
  61. json_object_new_boolean;
  62. json_object_new_double;
  63. json_object_new_double_s;
  64. json_object_new_int64;
  65. json_object_new_int;
  66. json_object_new_null;
  67. json_object_new_object;
  68. json_object_new_string;
  69. json_object_new_string_len;
  70. json_object_new_uint64;
  71. json_object_object_add;
  72. json_object_object_add_ex;
  73. json_object_object_del;
  74. json_object_object_get;
  75. json_object_object_get_ex;
  76. json_object_object_length;
  77. json_object_put;
  78. json_object_set_boolean;
  79. json_object_set_double;
  80. json_object_set_int64;
  81. json_object_set_int;
  82. json_object_set_serializer;
  83. json_object_set_string;
  84. json_object_set_string_len;
  85. json_object_set_uint64;
  86. json_object_set_userdata;
  87. json_object_to_fd;
  88. json_object_to_file;
  89. json_object_to_file_ext;
  90. json_object_to_json_string;
  91. json_object_to_json_string_ext;
  92. json_object_to_json_string_length;
  93. json_object_userdata_to_json_string;
  94. json_parse_double;
  95. json_parse_int64;
  96. json_parse_uint64;
  97. json_pointer_get;
  98. json_pointer_getf;
  99. json_pointer_set;
  100. json_pointer_setf;
  101. json_tokener_error_desc;
  102. json_tokener_free;
  103. json_tokener_get_error;
  104. json_tokener_get_parse_end;
  105. json_tokener_new;
  106. json_tokener_new_ex;
  107. json_tokener_parse;
  108. json_tokener_parse_ex;
  109. json_tokener_parse_verbose;
  110. json_tokener_reset;
  111. json_tokener_set_flags;
  112. json_type_to_name;
  113. json_util_get_last_err;
  114. lh_char_equal;
  115. lh_kchar_table_new;
  116. lh_kptr_table_new;
  117. lh_ptr_equal;
  118. lh_table_delete;
  119. lh_table_delete_entry;
  120. lh_table_free;
  121. lh_table_insert;
  122. lh_table_insert_w_hash;
  123. lh_table_length;
  124. lh_table_lookup;
  125. lh_table_lookup_entry;
  126. lh_table_lookup_entry_w_hash;
  127. lh_table_lookup_ex;
  128. lh_table_new;
  129. lh_table_resize;
  130. mc_debug;
  131. mc_error;
  132. mc_get_debug;
  133. mc_info;
  134. mc_set_debug;
  135. mc_set_syslog;
  136. printbuf_free;
  137. printbuf_memappend;
  138. printbuf_memset;
  139. printbuf_new;
  140. printbuf_reset;
  141. sprintbuf;
  142. local:
  143. *;
  144. };
  145. JSONC_0.15 {
  146. global:
  147. array_list_new2;
  148. array_list_shrink;
  149. json_object_array_shrink;
  150. json_object_new_array_ext;
  151. } JSONC_0.14;