[client] add deprecation/experimental warnings

This commit is contained in:
Armin Novak 2023-03-01 08:34:52 +01:00 committed by akallabeth
parent 73158a040a
commit 8af35bd42a
5 changed files with 10 additions and 8 deletions

View File

@ -7,10 +7,13 @@
//
#import <Cocoa/Cocoa.h>
#include <freerdp/client/cmdline.h>
int main(int argc, const char *argv[])
{
const char *ctemp;
freerdp_client_warn_deprecated(argc, argv);
for (int i = 0; i < argc; i++)
{
ctemp = argv[i];

View File

@ -1222,14 +1222,7 @@ int main(int argc, char* argv[])
int status;
RDP_CLIENT_ENTRY_POINTS clientEntryPoints = { 0 };
WLog_WARN(SDL_TAG, "[experimental] The SDL client is currently experimental!");
WLog_WARN(SDL_TAG,
" If problems occur please check https://github.com/FreeRDP/FreeRDP/issues for "
"know issues or create a new one!");
WLog_WARN(SDL_TAG,
" Developers hang out in https://matrix.to/#/#FreeRDP:matrix.org?via=matrix.org "
"- dont hesitate to ask some questions. (replies might take some time depending "
"on your timezone)");
freerdp_client_warn_experimental(argc, argv);
RdpClientEntry(&clientEntryPoints);
sdlContext* sdl = freerdp_client_context_new(&clientEntryPoints);

View File

@ -679,6 +679,8 @@ int main(int argc, char* argv[])
rdpSettings* settings;
wlfContext* wlc;
freerdp_client_warn_deprecated(argc, argv);
RdpClientEntry(&clientEntryPoints);
context = freerdp_client_context_new(&clientEntryPoints);
if (!context)

View File

@ -95,6 +95,8 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
goto out;
}
freerdp_client_warn_deprecated(argc, argv);
settings = context->settings;
wfc = (wfContext*)context;

View File

@ -9,9 +9,11 @@
*/
#import <UIKit/UIKit.h>
#include <freerdp/client/cmdline.h>
int main(int argc, char *argv[])
{
freerdp_client_warn_deprecated(argc, argv);
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];