Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_library.h
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
| void BKE_library_make_local(struct Main *bmain, struct Library *lib, bool untagged_only); | void BKE_library_make_local(struct Main *bmain, struct Library *lib, bool untagged_only); | ||||
| struct ID *BKE_libblock_find_name(const short type, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | struct ID *BKE_libblock_find_name(const short type, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| void set_free_windowmanager_cb(void (*func)(struct bContext *, struct wmWindowManager *) ); | void set_free_windowmanager_cb(void (*func)(struct bContext *, struct wmWindowManager *) ); | ||||
| void set_free_notifier_reference_cb(void (*func)(const void *) ); | void set_free_notifier_reference_cb(void (*func)(const void *) ); | ||||
| /* Call a callback for each ID link which the given ID uses. */ | |||||
| typedef void (*LibraryIDLinkCallback) (void *user_data, struct ID *id); | |||||
| void BKE_library_foreach_ID_link(struct ID *id, LibraryIDLinkCallback callback, void *user_data); | |||||
| /* use when "" is given to new_id() */ | /* use when "" is given to new_id() */ | ||||
| #define ID_FALLBACK_NAME N_("Untitled") | #define ID_FALLBACK_NAME N_("Untitled") | ||||
| #define IS_TAGGED(_id) ((_id) && (((ID *)_id)->flag & LIB_DOIT)) | #define IS_TAGGED(_id) ((_id) && (((ID *)_id)->flag & LIB_DOIT)) | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __BKE_LIBRARY_H__ */ | #endif /* __BKE_LIBRARY_H__ */ | ||||