Skip to content

Commit 62ff33d

Browse files
committed
Add messages for PABotBase 2 message layer.
1 parent 729613c commit 62ff33d

23 files changed

Lines changed: 296 additions & 31 deletions

Common/Cpp/StreamConnections/MockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include <string.h>
88
#include "Common/Cpp/Exceptions.h"
9-
#include "Common/PABotBase2/PABotBase2_ConnectionDebug.h"
9+
#include "Common/PABotBase2/ConnectionLayer/PABotBase2_ConnectionDebug.h"
1010
#include "MockDevice.h"
1111

1212
// REMOVE

Common/Cpp/StreamConnections/MockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "Common/Cpp/Concurrency/ConditionVariable.h"
1414
#include "Common/Cpp/Concurrency/AsyncTask.h"
1515
#include "Common/Cpp/Concurrency/ThreadPool.h"
16-
#include "Common/PABotBase2/PABotbase2_ReliableStreamConnection.h"
16+
#include "Common/PABotBase2/ConnectionLayer/PABotbase2_ReliableStreamConnection.h"
1717

1818
namespace PokemonAutomation{
1919

Common/Cpp/StreamConnections/PABotBase2_MessageDumper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define PokemonAutomation_PABotBase2_MessageDumper_H
99

1010
#include <string>
11-
#include "Common/PABotBase2/PABotBase2_Connection.h"
11+
#include "Common/PABotBase2/ConnectionLayer/PABotBase2_Connection.h"
1212

1313
namespace PokemonAutomation{
1414

Common/Cpp/StreamConnections/ReliableStreamConnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "Common/CRC32/pabb_CRC32.h"
88
//#include "Common/Cpp/PrettyPrint.h"
99
//#include "Common/Cpp/Exceptions.h"
10-
#include "Common/PABotBase2/PABotBase2_ConnectionDebug.h"
10+
#include "Common/PABotBase2/ConnectionLayer/PABotBase2_ConnectionDebug.h"
1111
#include "Common/Cpp/StreamConnections/PABotBase2_MessageDumper.h"
1212
#include "ReliableStreamConnection.h"
1313

Common/Cpp/StreamConnections/ReliableStreamConnection.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#include "Common/Cpp/Concurrency/ConditionVariable.h"
1515
#include "Common/Cpp/Concurrency/AsyncTask.h"
1616
#include "Common/Cpp/Concurrency/ThreadPool.h"
17-
#include "Common/PABotBase2/PABotBase2_PacketSender.h"
18-
#include "Common/PABotBase2/PABotBase2_PacketParser.h"
19-
#include "Common/PABotBase2/PABotBase2_StreamCoalescer.h"
17+
#include "Common/PABotBase2/ConnectionLayer/PABotBase2_PacketSender.h"
18+
#include "Common/PABotBase2/ConnectionLayer/PABotBase2_PacketParser.h"
19+
#include "Common/PABotBase2/ConnectionLayer/PABotBase2_StreamCoalescer.h"
2020
#include "StreamConnection.h"
2121

2222
namespace PokemonAutomation{

Common/PABotBase2/PABotBase2_Connection.h renamed to Common/PABotBase2/ConnectionLayer/PABotBase2_Connection.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*
55
*/
66

7-
#ifndef PokemonAutomation_PABotBase2_ConnectionProtocol_H
8-
#define PokemonAutomation_PABotBase2_ConnectionProtocol_H
7+
#ifndef PokemonAutomation_PABotBase2_ConnectionLayer_ConnectionProtocol_H
8+
#define PokemonAutomation_PABotBase2_ConnectionLayer_ConnectionProtocol_H
99

1010
#include <stdbool.h>
1111
#include <stdint.h>
@@ -25,7 +25,7 @@ extern "C" {
2525

2626

2727
#define PABB2_CONNECTION_MAGIC_NUMBER 0x81
28-
#define PABB2_CONNECTION_PROTOCOL_VERSION 2023011700
28+
#define PABB2_CONNECTION_PROTOCOL_VERSION 2025011700
2929

3030

3131
//

Common/PABotBase2/PABotBase2_ConnectionDebug.c renamed to Common/PABotBase2/ConnectionLayer/PABotBase2_ConnectionDebug.c

File renamed without changes.

Common/PABotBase2/PABotBase2_ConnectionDebug.h renamed to Common/PABotBase2/ConnectionLayer/PABotBase2_ConnectionDebug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*
55
*/
66

7-
#ifndef PokemonAutomation_PABotBase2_ConnectionDebug_H
8-
#define PokemonAutomation_PABotBase2_ConnectionDebug_H
7+
#ifndef PokemonAutomation_PABotBase2_ConnectionLayer_ConnectionDebug_H
8+
#define PokemonAutomation_PABotBase2_ConnectionLayer_ConnectionDebug_H
99

1010
#include "PABotBase2_Connection.h"
1111
#include "PABotBase2_PacketSender.h"
File renamed without changes.

Common/PABotBase2/PABotBase2_PacketParser.h renamed to Common/PABotBase2/ConnectionLayer/PABotBase2_PacketParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*
55
*/
66

7-
#ifndef PokemonAutomation_PABotBase2_PacketParser_H
8-
#define PokemonAutomation_PABotBase2_PacketParser_H
7+
#ifndef PokemonAutomation_PABotBase2_ConnectionLayer_PacketParser_H
8+
#define PokemonAutomation_PABotBase2_ConnectionLayer_PacketParser_H
99

1010
#include "PABotBase2_StreamInterface.h"
1111
#include "PABotBase2_Connection.h"

0 commit comments

Comments
 (0)