Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Claudio Costa streamer45

🏠
Working from home
  • Italy
View GitHub Profile
View bug.go
package main
import (
"fmt"
)
func main() {
if (true) {
fmt.printLn("test");
}
View nobug.go
package main
import (
"fmt"
)
func main() {
if (true) {
fmt.printLn("test");
}
View gist:8686811
diff --git a/tests/kr_graph_test.c b/tests/kr_graph_test.c
index 0bcd36b..b2c44a2 100644
--- a/tests/kr_graph_test.c
+++ b/tests/kr_graph_test.c
@@ -58,7 +58,7 @@ int random_vertices_gen(kr_graph *graph, int n, kr_vertex **vertices) {
int i;
int k;
for (i = k = 0; i < n; i++) {
- vertices[k] = kr_graph_vertex_create(graph,randr(1,3));
+ vertices[k] = kr_graph_vertex_create(graph,randr(1,4),NULL);
View gist:8670426
+------+ +------+
| INP1 | | INP2 |
+---+--+ +---+--+
| |
| |
| |
| |
+---->------+<---+
View gist:8547462
[streamer45@archlinux tests]$ ./kr_graph_test 64 512
graph created successfully!
Generated 64 random vertices
timer: 0ms
Cycle detected!
Cycle detected!
Cycle detected!
Cycle detected!
View gist:8537062
[streamer45@archlinux tests]$ ./kr_graph_test
graph created successfully!
graph info:
your graph is empty...
creating some vertices in our graph...
graph info:
vertex 0x2020010 of type INPUT
vertex 0x2020014 of type INPUT
vertex 0x2020018 of type BUS
vertex 0x202001c of type BUS
View gist:8524064
[streamer45@archlinux krad_graph]$ ./krad_graph_test
graph created successfully!
View gist:8418577
diff --git a/lib/gen/dejson_common.c b/lib/gen/dejson_common.c
index cad2b7c..2dec5b6 100644
--- a/lib/gen/dejson_common.c
+++ b/lib/gen/dejson_common.c
@@ -1,7 +1,8 @@
#include "gen.h"
int info_unpack_fr_json(char *json, uber_St *uber) {
- const info_unpack_fr_json_func fr_json_functions[64] = {kr_alsa_info_fr_json,
- kr_alsa_path_info_fr_json,kr_easing_fr_json,
+ const info_unpack_fr_json_func fr_json_functions[69] = {kr_alsa_info_fr_json,
View gist:8373792
diff --git a/lib/krad_app/krad_router.c b/lib/krad_app/krad_router.c
index 6eb383a..db6cc44 100644
--- a/lib/krad_app/krad_router.c
+++ b/lib/krad_app/krad_router.c
@@ -196,6 +196,8 @@ kr_route *kr_route_create(kr_router *router, kr_route_setup *setup) {
route->map = map;
strncpy(route->name, setup->name->name, sizeof(route->name));
setup->name->use++;
+ route->payload_type = setup->payload_type;
+ memcpy(&route->payload,&setup->payload,sizeof(kr_radio_payload));
View gist:8370328
diff --git a/lib/krad_compositor/krad_compositor.h b/lib/krad_compositor/krad_compositor.h
index 94f6822..fabec11 100644
--- a/lib/krad_compositor/krad_compositor.h
+++ b/lib/krad_compositor/krad_compositor.h
@@ -69,12 +69,21 @@ struct kr_compositor {
FT_Library ftlib;
};
+typedef enum {
+ KR_COMP_GET = 1,