summaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorAlexander Smirnov <[email protected]>2025-02-03 00:51:36 +0000
committerAlexander Smirnov <[email protected]>2025-02-03 00:51:36 +0000
commit5b64c0518105f7e99583161dcf26f575febfc667 (patch)
tree0ac7be96f89dabddcffccae407ffd943effce869 /library/cpp
parent9eb5ef270c085a5de742917a9dd359bb80d5ede7 (diff)
parent666a2d9d8f45c36b8b25a56eb1a8d2472ae72d59 (diff)
Merge branch 'rightlib' into merge-libs-250203-0050
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/resource/registry.cpp10
-rw-r--r--library/cpp/resource/registry.h3
-rw-r--r--library/cpp/yt/system/exit.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/library/cpp/resource/registry.cpp b/library/cpp/resource/registry.cpp
index 62d49c9c90b..66eb5f8f79f 100644
--- a/library/cpp/resource/registry.cpp
+++ b/library/cpp/resource/registry.cpp
@@ -141,3 +141,13 @@ IStore* NResource::CommonStore() {
NResource::TRegHelper::TRegHelper(const TStringBuf key, const TStringBuf data) {
CommonStore()->Store(key, data);
}
+
+int NResource::LightRegisterI(const char* key, const char* data, const char* data_end) {
+ CommonStore()->Store(TStringBuf(key), TStringBuf(data, data_end));
+ return 0;
+
+}
+int NResource::LightRegisterS(const char* key, const char* data, unsigned long data_len) {
+ CommonStore()->Store(TStringBuf(key), TStringBuf(data, data_len));
+ return 0;
+}
diff --git a/library/cpp/resource/registry.h b/library/cpp/resource/registry.h
index d7f687cff8c..a2143936f1d 100644
--- a/library/cpp/resource/registry.h
+++ b/library/cpp/resource/registry.h
@@ -31,4 +31,7 @@ namespace NResource {
struct TRegHelper {
TRegHelper(const TStringBuf key, const TStringBuf data);
};
+
+ int LightRegisterS(const char* key, const char* data, unsigned long data_len);
+ int LightRegisterI(const char* key, const char* data, const char* data_end);
}
diff --git a/library/cpp/yt/system/exit.h b/library/cpp/yt/system/exit.h
index e06c0bd3ddd..15261d63342 100644
--- a/library/cpp/yt/system/exit.h
+++ b/library/cpp/yt/system/exit.h
@@ -13,6 +13,7 @@ DEFINE_ENUM(EProcessExitCode,
((ArgumentsError) (1))
((GenericError) (2))
((IOError) (3))
+ ((InternalError) (4))
((OutOfMemory) (9))
);