Skip to content

Commit

Permalink
recent changes
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed May 2, 2024
1 parent d76a53b commit 10aec5a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 42 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

default: all

.DEFAULT:
cd module && $(MAKE) $@
.DEFAULT:
cd src && $(MAKE) $@

install:
Expand Down
10 changes: 0 additions & 10 deletions module/Makefile

This file was deleted.

23 changes: 0 additions & 23 deletions module/Readme.MD

This file was deleted.

4 changes: 0 additions & 4 deletions module/version.script

This file was deleted.

7 changes: 6 additions & 1 deletion src/modules/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif

.SUFFIXES: .c .so .xo .o

all: helloworld.so hellotype.so helloblock.so hellocluster.so hellotimer.so hellodict.so hellohook.so helloacl.so
all: helloworld.so hellotype.so helloblock.so hellocluster.so hellotimer.so hellodict.so hellohook.so helloacl.so announce.so

.c.xo:
$(CC) -I. $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
Expand Down Expand Up @@ -65,5 +65,10 @@ helloacl.xo: ../valkeymodule.h
helloacl.so: helloacl.xo
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc

announce.xo: ../hwextapi.h

announce.so: announce.xo
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc

clean:
rm -rf *.xo *.so
6 changes: 4 additions & 2 deletions module/announce.c → src/modules/announce.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <string.h>
#include <stdlib.h>

#include "../src/hwextapi.h"
#include "../src/redismodule.h"
#include "hwextapi.h"
#include "redismodule.h"

#define LOG_LEVEL_WARNING "warning"
#define MAX_CLUSTER_NODES 1000
Expand All @@ -14,6 +14,8 @@ struct Announce {
int nodePort;
};

HWExtAPI hwextapi;

static struct Announce nodeAnnounces[MAX_CLUSTER_NODES];
static int nodeCount;

Expand Down
2 changes: 2 additions & 0 deletions test.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bind fe80::f816:3eff:fe22:40ed :::::1
port 7000

0 comments on commit 10aec5a

Please sign in to comment.