Skip to content

Commit

Permalink
AP_Networking: rename _backend.h to _Backend.h
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Nov 13, 2023
1 parent 81497a6 commit 249c462
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_Networking/AP_Networking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#if AP_NETWORKING_ENABLED

#include "AP_Networking.h"
#include "AP_Networking_backend.h"
#include "AP_Networking_Backend.h"
#include <GCS_MAVLink/GCS.h>
#include <AP_Math/crc.h>

Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_Networking/AP_Networking.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
#include <AP_Param/AP_Param.h>

#include "AP_Networking_address.h"
#include "AP_Networking_backend.h"
#include "AP_Networking_Backend.h"

/*
Note! all uint32_t IPv4 addresses are in host byte order
*/

// declare backend classes
class AP_Networking_backend;
class AP_Networking_Backend;
class AP_Networking_ChibiOS;

class AP_Networking
{
public:
friend class AP_Networking_backend;
friend class AP_Networking_Backend;
friend class AP_Networking_ChibiOS;

AP_Networking();
Expand Down Expand Up @@ -167,7 +167,7 @@ class AP_Networking
AP_Int32 options;
} param;

AP_Networking_backend *backend;
AP_Networking_Backend *backend;

HAL_Semaphore sem;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

class AP_Networking;

class AP_Networking_backend
class AP_Networking_Backend
{
public:
friend class AP_Networking;

AP_Networking_backend(AP_Networking &_frontend) : frontend(_frontend) {}
AP_Networking_Backend(AP_Networking &_frontend) : frontend(_frontend) {}

/* Do not allow copies */
CLASS_NO_COPY(AP_Networking_backend);
CLASS_NO_COPY(AP_Networking_Backend);

virtual bool init() = 0;
virtual void update() = 0;
Expand Down
6 changes: 3 additions & 3 deletions libraries/AP_Networking/AP_Networking_ChibiOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#include "AP_Networking_Config.h"

#if AP_NETWORKING_BACKEND_CHIBIOS
#include "AP_Networking_backend.h"
#include "AP_Networking_Backend.h"

class AP_Networking_ChibiOS : public AP_Networking_backend
class AP_Networking_ChibiOS : public AP_Networking_Backend
{
public:
using AP_Networking_backend::AP_Networking_backend;
using AP_Networking_Backend::AP_Networking_Backend;

/* Do not allow copies */
CLASS_NO_COPY(AP_Networking_ChibiOS);
Expand Down

0 comments on commit 249c462

Please sign in to comment.