Skip to content

Commit 15f0500

Browse files
committed
✨ Hello, world.
1 parent 68fe950 commit 15f0500

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ else()
1313
endif()
1414

1515
add_library(obs-streamlink MODULE
16-
main.cpp)
16+
obs-streamlink.cpp)
1717

1818
target_include_directories(obs-streamlink PUBLIC "${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api")
1919
target_link_libraries(obs-streamlink libobs)

data/locale/en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test="Test streamlink."

obs-streamlink.cpp

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
#include <obs-module.h>
1+
#include <obs-module.h>
2+
3+
/* Defines common functions (required) */
4+
OBS_DECLARE_MODULE()
5+
6+
/* Implements common ini-based locale (optional) */
7+
OBS_MODULE_USE_DEFAULT_LOCALE("obs-streamlink", "en-US")
8+
9+
#define blog(log_level, format, ...) \
10+
blog(log_level, "[streamlink] " format, \
11+
##__VA_ARGS__)
12+
13+
#define debug(format, ...) blog(LOG_DEBUG, format, ##__VA_ARGS__)
14+
#define info(format, ...) blog(LOG_INFO, format, ##__VA_ARGS__)
15+
#define warn(format, ...) blog(LOG_WARNING, format, ##__VA_ARGS__)
16+
17+
bool obs_module_load(void)
18+
{
19+
info("Initialized");
20+
return true;
21+
}
22+
23+
MODULE_EXPORT const char* obs_module_description(void)
24+
{
25+
return "OBS source plugin to receive stream using streamlink.";
26+
}

0 commit comments

Comments
 (0)