gst-plugins-rs/utils/togglerecord/src/lib.rs

35 lines
938 B
Rust
Raw Normal View History

2017-12-05 07:52:31 +00:00
// Copyright (C) 2017 Sebastian Dröge <sebastian@centricular.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at
// <https://mozilla.org/MPL/2.0/>.
2017-12-05 07:52:31 +00:00
//
// SPDX-License-Identifier: MPL-2.0
#![allow(clippy::non_send_fields_in_send_ty)]
2017-12-05 07:52:31 +00:00
/**
* plugin-togglerecord:
*
* Since: plugins-rs-0.1.0
*/
2021-06-03 18:20:54 +00:00
use gst::glib;
2017-12-05 07:52:31 +00:00
mod togglerecord;
2018-11-04 18:46:07 +00:00
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
togglerecord::register(plugin)
2017-12-05 07:52:31 +00:00
}
2020-12-20 18:43:45 +00:00
gst::plugin_define!(
togglerecord,
env!("CARGO_PKG_DESCRIPTION"),
2017-12-05 07:52:31 +00:00
plugin_init,
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
// FIXME: MPL-2.0 is only allowed since 1.18.3 (as unknown) and 1.20 (as known)
"MPL-2.0",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_REPOSITORY"),
env!("BUILD_REL_DATE")
2017-12-05 07:52:31 +00:00
);