Skip to content

Commit

Permalink
Fixed C & linking errors for webkitgtk.
Browse files Browse the repository at this point in the history
  • Loading branch information
bamidev committed Mar 2, 2024
1 parent dc3fd28 commit 23d06b4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions c/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ fn main() {
.file("src/window/win32.c")
.file("src/cookie/unsupported.c");
}
else {
build.file("src/application/other.c");
}

/**************************************
* All other source files
Expand Down
3 changes: 2 additions & 1 deletion c/src/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern "C" {



struct bw_Application;
typedef struct bw_Application bw_Application;
typedef void (*bw_ApplicationDispatchFn)( struct bw_Application* app, void* data );
typedef bw_ApplicationDispatchFn bw_ApplicationReadyFn;

Expand All @@ -24,6 +24,7 @@ typedef bw_ApplicationDispatchFn bw_ApplicationReadyFn;
#include "application/gtk.h"
#elif defined(BW_CEF_WINDOW)
#include "application/cef_window.h"
#else
#define BW_OTHER_IMPL
#endif

Expand Down
6 changes: 1 addition & 5 deletions c/src/application/edge2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
#include <windows.h>


void bw_ApplicationEngineImpl_free( bw_ApplicationEngineImpl* ) {

}
void bw_ApplicationEngineImpl_free( bw_ApplicationEngineImpl* ) {}

bw_Err bw_ApplicationEngineImpl_initialize( bw_ApplicationEngineImpl* impl, bw_Application* app, int argc, char** argv, const bw_ApplicationSettings* settings ) {
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);


BW_ERR_RETURN_SUCCESS;
}
9 changes: 9 additions & 0 deletions c/src/application/other.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

#include "impl.h"


void bw_ApplicationEngineImpl_free( bw_ApplicationEngineImpl* ) {}

bw_Err bw_ApplicationEngineImpl_initialize( bw_ApplicationEngineImpl* impl, bw_Application* app, int argc, char** argv, const bw_ApplicationSettings* settings ) {
BW_ERR_RETURN_SUCCESS;
}

0 comments on commit 23d06b4

Please sign in to comment.