blob: e30746cb6cee70d82b21a9b4b398d1ea66030cef [file] [log] [blame]
// Copyright 2023 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mod.h"
// Defined in fuchsia_controller_py.cc
extern struct PyModuleDef libfidl_codec;
namespace fuchsia_controller::fidl_codec::mod {
FidlCodecState *get_module_state() {
auto mod = PyState_FindModule(&libfidl_codec);
return reinterpret_cast<FidlCodecState *>(PyModule_GetState(mod));
}
} // namespace fuchsia_controller::fidl_codec::mod