martinzink commented on code in PR #2205: URL: https://github.com/apache/nifi-minifi-cpp/pull/2205#discussion_r3473259154
########## minifi-api/include/minifi-c/minifi-api.h: ########## @@ -0,0 +1,313 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef MINIFI_API_INCLUDE_MINIFI_C_MINIFI_API_H_ +#define MINIFI_API_INCLUDE_MINIFI_C_MINIFI_API_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stddef.h> +#include <stdint.h> +#if __STDC_VERSION__ < 202311l +#include <stdbool.h> +#endif // < C23 + +#define MINIFI_PRIVATE_STRINGIFY_HELPER(X) #X +#define MINIFI_PRIVATE_STRINGIFY(X) MINIFI_PRIVATE_STRINGIFY_HELPER(X) + +#define MINIFI_PRIVATE_JOIN_HELPER(X, Y) X##_##Y +#define MINIFI_PRIVATE_JOIN(X, Y) MINIFI_PRIVATE_JOIN_HELPER(X, Y) + +#define MINIFI_OWNED +#define MINIFI_NULLABLE + +#ifndef MINIFI_REGISTER_EXTENSION_FN +#define MINIFI_REGISTER_EXTENSION_FN minifi_register_extension +#endif + +/// To declare a processor property that expects an SSLContextService, +/// use MINIFI_SSL_CONTEXT_SERVICE_PROPERTY_TYPE in the type field of the property definition (minifi_property_definition::type) +#define MINIFI_SSL_CONTEXT_SERVICE_PROPERTY_TYPE "org.apache.nifi.minifi.controllers.SSLContextServiceInterface" + +/// To declare a processor property that expects an ProxyConfigurationService, +/// use MINIFI_PROXY_CONFIGURATION_SERVICE_PROPERTY_TYPE in the type field of the property definition (minifi_property_definition::type) +#define MINIFI_PROXY_CONFIGURATION_SERVICE_PROPERTY_TYPE "org.apache.nifi.minifi.controllers.ProxyConfigurationServiceInterface" Review Comment: [fixed](https://github.com/apache/nifi-minifi-cpp/pull/2205/changes/dfacebe8c17298a2e4550c33f99c0ddad75d3231#diff-93ae714fe26520ccd904047bef82f05ba56ba811c56a4cd89e412012b0253d21R45) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
