Skip to content

Commit bbd0a53

Browse files
Copilotpetesramek
andauthored
refactor: reorganize internal files into src/internal/{codec,protocol} (#21)
Agent-Logs-Url: https://github.com/petesramek/tiny-link/sessions/debc3c5b-0d0f-49aa-84ab-290ed948019c Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 8446d35 commit bbd0a53

17 files changed

Lines changed: 16 additions & 16 deletions

src/TinyLink.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
#define TINY_LINK_H
88

99
#include "TinyProtocol.h"
10-
#include "CobsCodec.h"
11-
#include "Fletcher16.h"
12-
#include "Packet.h"
10+
#include "internal/codec/CobsCodec.h"
11+
#include "internal/codec/Fletcher16.h"
12+
#include "internal/codec/Packet.h"
1313
#include "version.h"
14-
#include "protocol/internal/AckMessage.h"
15-
#include "protocol/internal/LogMessage.h"
16-
#include "protocol/internal/HandshakeMessage.h"
14+
#include "internal/protocol/AckMessage.h"
15+
#include "internal/protocol/LogMessage.h"
16+
#include "internal/protocol/HandshakeMessage.h"
1717
#include "protocol/LogLevel.h"
1818
#include <stdint.h>
1919
#include <string.h>

src/TinyProtocol.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Payload wire-format headers (TinyAck, LogMessage) are internal
66
* implementation details and are not re-exported here. Include them
77
* explicitly from their internal paths if needed:
8-
* #include "protocol/internal/AckMessage.h"
9-
* #include "protocol/internal/LogMessage.h"
8+
* #include "internal/protocol/AckMessage.h"
9+
* #include "internal/protocol/LogMessage.h"
1010
*/
1111

1212
#ifndef TINY_PROTOCOL_H
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include <stdint.h>
1313
#include "protocol/Status.h"
14-
#include "protocol/internal/Packed.h"
14+
#include "internal/protocol/Packed.h"
1515

1616
namespace tinylink {
1717

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define TINYLINK_INTERNAL_HANDSHAKEMESSAGE_H
1111

1212
#include <stdint.h>
13-
#include "protocol/internal/Packed.h"
13+
#include "internal/protocol/Packed.h"
1414

1515
namespace tinylink {
1616

0 commit comments

Comments
 (0)