From 6ec47ed5853d0d0de455f4a922a414202833fa61 Mon Sep 17 00:00:00 2001 From: Mohammed Alyousef Date: Mon, 23 Sep 2024 17:27:21 +0300 Subject: [PATCH] add Fl_open_uri and Fl_decode_uri --- include/cfl_utils.h | 4 ++++ src/cfl_utils.cpp | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/include/cfl_utils.h b/include/cfl_utils.h index 2808f86..6b472e0 100644 --- a/include/cfl_utils.h +++ b/include/cfl_utils.h @@ -9,6 +9,10 @@ int Fl_filename_expand(char *out, int len, const char *in); const char *Fl_type_name(void *w); +int Fl_open_uri(const char *uri, char *msg, int msglen); + +void Fl_decode_uri(char *uri); + #ifdef __cplusplus } #endif diff --git a/src/cfl_utils.cpp b/src/cfl_utils.cpp index 505e3fe..755f56e 100644 --- a/src/cfl_utils.cpp +++ b/src/cfl_utils.cpp @@ -10,4 +10,12 @@ int Fl_filename_expand(char *out, int len, const char *in) { const char *Fl_type_name(void *w) { return typeid(*(Fl_Widget *)w).name(); +} + +int Fl_open_uri(const char *uri, char *msg, int msglen) { + return fl_open_uri(uri, msg, msglen); +} + +void Fl_decode_uri(char *uri) { + fl_decode_uri(uri); } \ No newline at end of file