File tree Expand file tree Collapse file tree 5 files changed +67
-26
lines changed Expand file tree Collapse file tree 5 files changed +67
-26
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include <switch.h>
4
-
5
- #define EIFFEL_SERVICE_NAME "efl"
6
-
7
- typedef enum {
8
- EFL_CMD_LOG = 0 ,
9
- } EiffelCommandId ;
10
-
11
- typedef enum {
12
- EFL_LOG_LEVEL_INFO = 0 ,
13
- EFL_LOG_LEVEL_WARNING = 1 ,
14
- EFL_LOG_LEVEL_ERROR = 2 ,
15
- } EiffelLogLevel ;
16
-
17
- Result eiffelInitialize ();
18
- void eiffelExit ();
19
-
20
- Result eiffelLog (const char * moduleName , EiffelLogLevel level , const char * logContent );
3
+ #include "eiffel/user.h"
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include <switch.h>
4
+
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ #define EIFFEL_SKYLINE_SERVICE_NAME "efl:sl"
10
+
11
+ typedef enum {
12
+ EFL_SL_CMD_LOG = 0 ,
13
+ } EiffelSlCommandId ;
14
+
15
+ typedef enum {
16
+ EFL_LOG_LEVEL_INFO = 0 ,
17
+ EFL_LOG_LEVEL_WARNING = 1 ,
18
+ EFL_LOG_LEVEL_ERROR = 2 ,
19
+ } EiffelLogLevel ;
20
+
21
+ Result eiffelSlInitialize ();
22
+ void eiffelSlExit ();
23
+
24
+ Result eiffelSlLog (const char * moduleName , EiffelLogLevel level , const char * logContent );
25
+
26
+ #ifdef __cplusplus
27
+ }
28
+ #endif
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include <switch.h>
4
+
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ #define EIFFEL_USER_SERVICE_NAME "efl:u"
10
+
11
+ typedef enum {
12
+ EFL_U_CMD_GET_PLUGIN_READY_EVENT = 0 ,
13
+ EFL_U_CMD_GET_PLUGIN_INFO = 1 ,
14
+ } EiffelUserCommandId ;
15
+
16
+ Result eiffelInitialize ();
17
+ void eiffelExit ();
18
+
19
+ #ifdef __cplusplus
20
+ }
21
+ #endif
Original file line number Diff line number Diff line change 1
- #include "eiffel.h"
2
-
3
1
#include <string.h>
4
2
3
+ #include "eiffel/sl.h"
5
4
#include "service_guard.h"
6
5
7
- static Service g_eiffelSrv ;
6
+ static Service g_eiffelSlSrv ;
8
7
9
- NX_GENERATE_SERVICE_GUARD (eiffel );
8
+ NX_GENERATE_SERVICE_GUARD (eiffelSl );
10
9
11
- Result _eiffelInitialize () { return smGetService (& g_eiffelSrv , EIFFEL_SERVICE_NAME ); }
10
+ Result _eiffelSlInitialize () { return smGetService (& g_eiffelSlSrv , EIFFEL_SKYLINE_SERVICE_NAME ); }
12
11
13
- void _eiffelCleanup (void ) { serviceClose (& g_eiffelSrv ); }
12
+ void _eiffelSlCleanup (void ) { serviceClose (& g_eiffelSlSrv ); }
14
13
15
- Result eiffelLog (const char * moduleName , EiffelLogLevel level , const char * logContent ) {
16
- return serviceDispatchIn (& g_eiffelSrv , EFL_CMD_LOG , level ,
14
+ Result eiffelSlLog (const char * moduleName , EiffelLogLevel level , const char * logContent ) {
15
+ return serviceDispatchIn (& g_eiffelSlSrv , EFL_SL_CMD_LOG , level ,
17
16
.buffer_attrs =
18
17
{
19
18
SfBufferAttr_HipcMapAlias | SfBufferAttr_In ,
Original file line number Diff line number Diff line change
1
+ #include "eiffel/user.h"
2
+ #include "service_guard.h"
3
+
4
+ static Service g_eiffelSrv ;
5
+
6
+ NX_GENERATE_SERVICE_GUARD (eiffel );
7
+
8
+ Result _eiffelInitialize () { return smGetService (& g_eiffelSrv , EIFFEL_USER_SERVICE_NAME ); }
9
+
10
+ void _eiffelCleanup (void ) { serviceClose (& g_eiffelSrv ); }
You can’t perform that action at this time.
0 commit comments