Browse Source

libobs: Mark data path modification functions as deprecated

PatTheMav 2 years ago
parent
commit
3311a7105e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      libobs/obs.c

+ 4 - 2
libobs/obs.c

@@ -1273,13 +1273,15 @@ char *obs_find_data_file(const char *file)
 	return NULL;
 }
 
-void obs_add_data_path(const char *path)
+// TODO: Remove after deprecation grace period
+OBS_DEPRECATED void obs_add_data_path(const char *path)
 {
 	struct dstr *new_path = da_push_back_new(core_module_paths);
 	dstr_init_copy(new_path, path);
 }
 
-bool obs_remove_data_path(const char *path)
+// TODO: Remove after deprecation grace period
+OBS_DEPRECATED bool obs_remove_data_path(const char *path)
 {
 	for (size_t i = 0; i < core_module_paths.num; ++i) {
 		int result = dstr_cmp(&core_module_paths.array[i], path);