diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/src/internal.rs | 12 | ||||
| -rw-r--r-- | common/src/lib.rs | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/common/src/internal.rs b/common/src/internal.rs new file mode 100644 index 0000000..94876f1 --- /dev/null +++ b/common/src/internal.rs @@ -0,0 +1,12 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2026 metamuffin <metamuffin.org> +*/ + +use jellyobject::fields; + +fields! { + IM_PATH: &str = 0x11001 "path"; + IM_MTIME: u64 = 0x11002 "mtime"; +} diff --git a/common/src/lib.rs b/common/src/lib.rs index 4ae098d..4f8ffca 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -4,6 +4,7 @@ Copyright (C) 2025 metamuffin <metamuffin.org> */ pub mod api; +pub mod internal; pub mod node; pub mod routes; pub mod user; @@ -25,6 +26,7 @@ pub static TAGREG: LazyLock<Registry> = LazyLock::new(|| { user::register_fields(&mut reg); api::register_fields(&mut reg); api::register_enums(&mut reg); + internal::register_fields(&mut reg); reg }); |