diff options
author | Polyester <polyester@egregore.fun> | 2024-09-21 19:45:20 +0200 |
---|---|---|
committer | Polyester <polyester@egregore.fun> | 2024-09-21 19:51:00 +0200 |
commit | 84256b3139cb662d107e3ec64460053c6dc202bb (patch) | |
tree | 7a46241971c3ab8e2e8a7bb7bcf9cf56b9295383 | |
parent | 28b41ee492805971632e1d65ab9f855ce837767b (diff) |
rebranding and cleaning
-rw-r--r-- | .cache/clangd/index/mcnetwork.c.B508600D61ADFA6B.idx | bin | 2354 -> 0 bytes | |||
-rw-r--r-- | .cache/clangd/index/mcnetwork.h.887D4E662A2D9D8B.idx | bin | 746 -> 0 bytes | |||
-rw-r--r-- | .cache/clangd/index/mcping.c.7D35BB1188AA7031.idx | bin | 1204 -> 0 bytes | |||
-rw-r--r-- | .cache/clangd/index/mctypes.c.AA2499938795B8BA.idx | bin | 2714 -> 0 bytes | |||
-rw-r--r-- | .cache/clangd/index/mctypes.h.7136FA4A3E0277AB.idx | bin | 2140 -> 0 bytes | |||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .vimspector.json | 76 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | README.md | 4 |
9 files changed, 4 insertions, 83 deletions
diff --git a/.cache/clangd/index/mcnetwork.c.B508600D61ADFA6B.idx b/.cache/clangd/index/mcnetwork.c.B508600D61ADFA6B.idx Binary files differdeleted file mode 100644 index 4be19e7..0000000 --- a/.cache/clangd/index/mcnetwork.c.B508600D61ADFA6B.idx +++ /dev/null diff --git a/.cache/clangd/index/mcnetwork.h.887D4E662A2D9D8B.idx b/.cache/clangd/index/mcnetwork.h.887D4E662A2D9D8B.idx Binary files differdeleted file mode 100644 index bfe1868..0000000 --- a/.cache/clangd/index/mcnetwork.h.887D4E662A2D9D8B.idx +++ /dev/null diff --git a/.cache/clangd/index/mcping.c.7D35BB1188AA7031.idx b/.cache/clangd/index/mcping.c.7D35BB1188AA7031.idx Binary files differdeleted file mode 100644 index 5e800aa..0000000 --- a/.cache/clangd/index/mcping.c.7D35BB1188AA7031.idx +++ /dev/null diff --git a/.cache/clangd/index/mctypes.c.AA2499938795B8BA.idx b/.cache/clangd/index/mctypes.c.AA2499938795B8BA.idx Binary files differdeleted file mode 100644 index d998593..0000000 --- a/.cache/clangd/index/mctypes.c.AA2499938795B8BA.idx +++ /dev/null diff --git a/.cache/clangd/index/mctypes.h.7136FA4A3E0277AB.idx b/.cache/clangd/index/mctypes.h.7136FA4A3E0277AB.idx Binary files differdeleted file mode 100644 index 37d98da..0000000 --- a/.cache/clangd/index/mctypes.h.7136FA4A3E0277AB.idx +++ /dev/null @@ -1,4 +1,5 @@ mcping +.cache # Prerequisites *.d diff --git a/.vimspector.json b/.vimspector.json deleted file mode 100644 index 5b5be4e..0000000 --- a/.vimspector.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "configurations": { - "ping herobrine": { - "adapter": "vscode-cpptools", - "configuration": { - "type": "cppdbg", - "request": "launch", - "program": "${workspaceRoot}/mcping", - "args": [ - "137.74.234.16:2001" - ], - "cwd": "${workspaceRoot}/test", - "externalConsole": true, - "stopAtEntry": true, - "MIMode": "gdb", - "logging": { - "engineLogging": false - } - } - }, - "ping seisan": { - "adapter": "vscode-cpptools", - "configuration": { - "type": "cppdbg", - "request": "launch", - "program": "${workspaceRoot}/mcping", - "args": [ - "mc.seisan.fr" - ], - "cwd": "${workspaceRoot}/test", - "externalConsole": true, - "stopAtEntry": true, - "MIMode": "gdb", - "logging": { - "engineLogging": false - } - } - }, - "ping localhost": { - "adapter": "vscode-cpptools", - "configuration": { - "type": "cppdbg", - "request": "launch", - "program": "${workspaceRoot}/mcping", - "args": [ - "localhost" - ], - "cwd": "${workspaceRoot}/test", - "externalConsole": true, - "stopAtEntry": true, - "MIMode": "gdb", - "logging": { - "engineLogging": false - } - } - }, - "ping query": { - "adapter": "vscode-cpptools", - "configuration": { - "type": "cppdbg", - "request": "launch", - "program": "${workspaceRoot}/mcping", - "args": [ - "${address}" - ], - "cwd": "${workspaceRoot}/test", - "externalConsole": true, - "stopAtEntry": true, - "MIMode": "gdb", - "logging": { - "engineLogging": false - } - } - } - } -} @@ -1,6 +1,4 @@ -CC=clang -CFLAGS=-Wall -g -I./include -PREFIX=~/.local +CFLAGS ?= -Wall -g -I./include mcping: mcping.c mctypes.o mcnetwork.o $(CC) $(CFLAGS) $^ -o $@ @@ -8,7 +6,7 @@ mcping: mcping.c mctypes.o mcnetwork.o %.o: %.c %.h $(CC) $(CFLAGS) -c $< -test: mcping +check: mcping ./mcping 137.74.234.16:2001 | jq '.players' ./mcping mc.seisan.fr | jq '.players' @@ -1,6 +1,4 @@ -# mc-comm +# mcping Queries various information about Minecraft servers. -mc-comm is a package for querying information about a Minecraft server on the commandline. - `mcping` implements the [Server List Ping](https://wiki.vg/Server_List_Ping). |