Skip to content

Commit

Permalink
Merge pull request #37 from speed47/json
Browse files Browse the repository at this point in the history
use a JSON library to craft output (fixes #7)
  • Loading branch information
Ognian authored Jan 25, 2025
2 parents 8a74ad2 + c06d211 commit 5c4fb04
Show file tree
Hide file tree
Showing 8 changed files with 2,702 additions and 157 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,9 @@ sudo ./sdmon /dev/mmcblk0
"success":true
}
```

## Licenses

This project uses the [json](https://github.com/json-parser/json-parser) and [json-builder](https://github.com/json-parser/json-builder) libraries, licensed under the BSD-2-Clause License. Their .c and .h source files have simply been added untouched to the source tree, as suggested in their readme file. The headers of these files contain more details about the license.

(c) 2018 - today, **OGI-IT**, Ognian Tschakalov and contributors, released under GNU GPL v2
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#VERSION = 0.01
CC = /usr/bin/gcc
CFLAGS = -Wall -g -D_REENTRANT -DVERSION="\"$(VERSION_STRING)\"" -static
LDFLAGS =
CFLAGS = -Wall -g -D_REENTRANT -DVERSION="\"$(VERSION_STRING)\"" -I. -static
LDFLAGS = -lm

OBJ = sdmon.o
OBJ = sdmon.o json.o json-builder.o
BIN = sdmon

$(BIN): $(OBJ)
Expand Down
6 changes: 3 additions & 3 deletions src/Makefile.freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#VERSION = 0.01
CC = /usr/bin/cc
CFLAGS = -Wall -g -D_REENTRANT -DVERSION="\"$(VERSION_STRING)\"" -static
LDFLAGS =
CFLAGS = -Wall -g -D_REENTRANT -DVERSION="\"$(VERSION_STRING)\"" -I. -static
LDFLAGS = -lm

OBJ = sdmon.o
OBJ = sdmon.o json.o json-builder.o
BIN = sdmon

$(BIN): $(OBJ)
Expand Down
Loading

0 comments on commit 5c4fb04

Please sign in to comment.