mediapipe/mediapipe/util/resource_util_custom.h
MediaPipe Team 7c331ad58b Project import generated by Copybara.
GitOrigin-RevId: 6e4aff1cc351be3ae4537b677f36d139ee50ce09
2021-03-25 22:09:18 -04:00

19 lines
467 B
C++

#ifndef MEDIAPIPE_UTIL_RESOURCE_UTIL_CUSTOM_H_
#define MEDIAPIPE_UTIL_RESOURCE_UTIL_CUSTOM_H_
#include <string>
#include "mediapipe/framework/port/status.h"
namespace mediapipe {
typedef std::function<absl::Status(const std::string&, std::string*)>
ResourceProviderFn;
// Overrides the behavior of GetResourceContents.
void SetCustomGlobalResourceProvider(ResourceProviderFn fn);
} // namespace mediapipe
#endif // MEDIAPIPE_UTIL_RESOURCE_UTIL_CUSTOM_H_