Hide dlog_print_{dotnet,native} from the header 25/289925/1
authorMichal Bloch <m.bloch@samsung.com>
Wed, 15 Mar 2023 13:41:12 +0000 (14:41 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Wed, 15 Mar 2023 13:48:59 +0000 (14:48 +0100)
Change-Id: Ibcd9b7c2c7aaa0a96faaaf6cac4f870dc6d3434f
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
include/dlog.h
src/logsend/logsend.c

index 1cdf905..a5d4437 100644 (file)
@@ -181,86 +181,9 @@ int main(void)
  */
 int dlog_vprint(log_priority prio, const char *tag, const char *fmt, va_list ap);
 
-
-/**
- * @brief Sends log with priority and tag
- * @details The same as 'dlog_print' except controlled by 'enable_dotnet_api'
- * instead of 'enable_apps'
- * @since_tizen 7.5
- * @param[in] prio priority level of type #log_priority
- * @param[in] tag tag - a null-terminated string
- * @param[in] fmt format string - same as printf
- * @return On success, the function returns the number of bytes written.
- *         On error, a negative errno-style error code
- * @retval #DLOG_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DLOG_ERROR_NOT_PERMITTED Operation not permitted
- * @pre none
- * @post none
- * @see dlog_vprint_dotnet
- * @see dlog_print
- */
-int dlog_print_dotnet(log_priority prio, const char *tag, const char *fmt, ...)  __attribute__((format(printf, 3, 4)));
-
-/**
- * @brief Sends log with priority and tag
- * @details The same as 'dlog_print' except controlled by 'enable_native_api'
- * instead of 'enable_apps'
- * @since_tizen 7.5
- * @param[in] prio priority level of type #log_priority
- * @param[in] tag tag - a null-terminated string
- * @param[in] fmt format string - same as printf
- * @return On success, the function returns the number of bytes written.
- *         On error, a negative errno-style error code
- * @retval #DLOG_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DLOG_ERROR_NOT_PERMITTED Operation not permitted
- * @pre none
- * @post none
- * @see dlog_vprint_native
- * @see dlog_print
- */
-int dlog_print_native(log_priority prio, const char *tag, const char *fmt, ...)  __attribute__((format(printf, 3, 4)));
-
-
-/**
- * @brief Sends log with priority, tag, and va_list.
- * @details The same as 'dlog_vprint' except controlled by 'enable_dotnet_api'
- * instead of 'enable_apps'
- * @since_tizen 7.5
- * @param[in] prio priority level of type #log_priority
- * @param[in] tag tag - a null-terminated string
- * @param[in] fmt format string - same as printf
- * @param[in] ap va_list
- * @return On success, the function returns the number of bytes written.
- *         On error, a negative errno-style error code
- * @retval #DLOG_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DLOG_ERROR_NOT_PERMITTED Operation not permitted
- * @pre none
- * @post none
- * @see dlog_print_dotnet
- * @see dlog_vprint
- */
-int dlog_vprint_dotnet(log_priority prio, const char *tag, const char *fmt, va_list ap);
-
-/**
- * @brief Sends log with priority, tag, and va_list.
- * @details The same as 'dlog_vprint' except controlled by 'enable_native_api'
- * instead of 'enable_apps'
- * @since_tizen 7.5
- * @param[in] prio priority level of type #log_priority
- * @param[in] tag tag - a null-terminated string
- * @param[in] fmt format string - same as printf
- * @param[in] ap va_list
- * @return On success, the function returns the number of bytes written.
- *         On error, a negative errno-style error code
- * @retval #DLOG_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DLOG_ERROR_NOT_PERMITTED Operation not permitted
- * @pre none
- * @post none
- * @see dlog_print_native
- * @see dlog_vprint
- */
-int dlog_vprint_native(log_priority prio, const char *tag, const char *fmt, va_list ap);
-
+/* `dlog_print_dotnet` and `dlog_print_native` are missing on purpose, even from
+ * the internal `dlog-internal.h` header - this is a client requirement. Declare
+ * them manually if you need to use them or use `dlsym()` on `libdlog.so`. */
 
 /**
  * @}
index c31fd6c..ff2d900 100644 (file)
@@ -8,6 +8,9 @@
 #include <extra_sinks.h>
 #include <logprint.h>
 
+int dlog_print_dotnet(log_priority prio, const char *tag, const char *fmt, ...)  __attribute__((format(printf, 3, 4)));
+int dlog_print_native(log_priority prio, const char *tag, const char *fmt, ...)  __attribute__((format(printf, 3, 4)));
+
 struct parsed_params {
        log_id_t      buffer;
        log_priority  priority;