|
1 | 1 | /* |
2 | | - * Generated by erpcgen 1.14.0 on Wed Nov 5 12:34:06 2025. |
| 2 | + * Generated by erpcgen 1.14.0 on Wed Nov 5 13:19:00 2025. |
3 | 3 | * |
4 | 4 | * AUTOGENERATED - DO NOT EDIT |
5 | 5 | */ |
@@ -35,6 +35,7 @@ using namespace erpcShim; |
35 | 35 |
|
36 | 36 |
|
37 | 37 |
|
| 38 | + |
38 | 39 |
|
39 | 40 |
|
40 | 41 | class api_server: public api_interface |
@@ -3817,3 +3818,76 @@ void destroy_Diagnostics_service(erpc_service_t service) |
3817 | 3818 | #endif |
3818 | 3819 | } |
3819 | 3820 |
|
| 3821 | + |
| 3822 | +class AdaptiveSensor_server: public AdaptiveSensor_interface |
| 3823 | +{ |
| 3824 | + public: |
| 3825 | + virtual ~AdaptiveSensor_server() {}; |
| 3826 | + |
| 3827 | + |
| 3828 | + AdaptiveSensorInfo * erpcAdaptiveGetInfo(void) |
| 3829 | + { |
| 3830 | + AdaptiveSensorInfo * result = NULL; |
| 3831 | + result = ::erpcAdaptiveGetInfo(); |
| 3832 | + |
| 3833 | + return result; |
| 3834 | + } |
| 3835 | + |
| 3836 | + int8_t erpcAdaptiveReset(AdaptiveResetType resetType) |
| 3837 | + { |
| 3838 | + int8_t result; |
| 3839 | + result = ::erpcAdaptiveReset(resetType); |
| 3840 | + |
| 3841 | + return result; |
| 3842 | + } |
| 3843 | + |
| 3844 | + AdaptiveMeasurement * erpcAdaptiveGetFlowMeasurement(void) |
| 3845 | + { |
| 3846 | + AdaptiveMeasurement * result = NULL; |
| 3847 | + result = ::erpcAdaptiveGetFlowMeasurement(); |
| 3848 | + |
| 3849 | + return result; |
| 3850 | + } |
| 3851 | +}; |
| 3852 | + |
| 3853 | +ERPC_MANUALLY_CONSTRUCTED_STATIC(AdaptiveSensor_service, s_AdaptiveSensor_service); |
| 3854 | +ERPC_MANUALLY_CONSTRUCTED_STATIC(AdaptiveSensor_server, s_AdaptiveSensor_server); |
| 3855 | + |
| 3856 | +erpc_service_t create_AdaptiveSensor_service(void) |
| 3857 | +{ |
| 3858 | + erpc_service_t service; |
| 3859 | + |
| 3860 | +#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
| 3861 | + service = new (nothrow) AdaptiveSensor_service(new (nothrow)AdaptiveSensor_server()); |
| 3862 | +#else |
| 3863 | + if (s_AdaptiveSensor_service.isUsed()) |
| 3864 | + { |
| 3865 | + service = NULL; |
| 3866 | + } |
| 3867 | + else |
| 3868 | + { |
| 3869 | + s_AdaptiveSensor_server.construct(); |
| 3870 | + s_AdaptiveSensor_service.construct(s_AdaptiveSensor_server.get()); |
| 3871 | + service = s_AdaptiveSensor_service.get(); |
| 3872 | + } |
| 3873 | +#endif |
| 3874 | + |
| 3875 | + return service; |
| 3876 | +} |
| 3877 | + |
| 3878 | +void destroy_AdaptiveSensor_service(erpc_service_t service) |
| 3879 | +{ |
| 3880 | +#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
| 3881 | + if (service) |
| 3882 | + { |
| 3883 | + delete (AdaptiveSensor_server *)(((AdaptiveSensor_service *)service)->getHandler()); |
| 3884 | + delete (AdaptiveSensor_service *)service; |
| 3885 | + } |
| 3886 | +#else |
| 3887 | + (void)service; |
| 3888 | + erpc_assert(service == s_AdaptiveSensor_service.get()); |
| 3889 | + s_AdaptiveSensor_service.destroy(); |
| 3890 | + s_AdaptiveSensor_server.destroy(); |
| 3891 | +#endif |
| 3892 | +} |
| 3893 | + |
0 commit comments