Skip to content

Commit

Permalink
rename headers: hpp -> h
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed May 4, 2021
1 parent 90ce0e9 commit 3be0bf5
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions messaging/bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ typedef void (*sighandler_t)(int sig);

#include "services.h"

#include "impl_msgq.hpp"
#include "impl_zmq.hpp"
#include "impl_msgq.h"
#include "impl_zmq.h"

void sigpipe_handler(int sig) {
assert(sig == SIGPIPE);
Expand Down
4 changes: 2 additions & 2 deletions messaging/demo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <thread>
#include <cassert>

#include "messaging.hpp"
#include "impl_zmq.hpp"
#include "messaging.h"
#include "impl_zmq.h"

#define MSGS 1e5

Expand Down
2 changes: 1 addition & 1 deletion messaging/impl_msgq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <cerrno>

#include "services.h"
#include "impl_msgq.hpp"
#include "impl_msgq.h"


volatile sig_atomic_t msgq_do_exit = 0;
Expand Down
4 changes: 2 additions & 2 deletions messaging/impl_msgq.hpp → messaging/impl_msgq.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "messaging.hpp"
#include "msgq.hpp"
#include "messaging.h"
#include "msgq.h"
#include <zmq.h>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion messaging/impl_zmq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <zmq.h>

#include "services.h"
#include "impl_zmq.hpp"
#include "impl_zmq.h"

static int get_port(std::string endpoint) {
int port = -1;
Expand Down
2 changes: 1 addition & 1 deletion messaging/impl_zmq.hpp → messaging/impl_zmq.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "messaging.hpp"
#include "messaging.h"
#include <zmq.h>
#include <string>

Expand Down
6 changes: 3 additions & 3 deletions messaging/messaging.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "messaging.hpp"
#include "impl_zmq.hpp"
#include "impl_msgq.hpp"
#include "messaging.h"
#include "impl_zmq.h"
#include "impl_msgq.h"

#ifdef __APPLE__
const bool MUST_USE_ZMQ = true;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion messaging/messaging.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from libcpp.vector cimport vector
from libcpp cimport bool


cdef extern from "messaging.hpp":
cdef extern from "messaging.h":
cdef cppclass Context:
@staticmethod
Context * create()
Expand Down
2 changes: 1 addition & 1 deletion messaging/msgq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <stdio.h>

#include "msgq.hpp"
#include "msgq.h"

void sigusr2_handler(int signal) {
assert(signal == SIGUSR2);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion messaging/msgq_tests.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "catch2/catch.hpp"
#include "msgq.hpp"
#include "msgq.h"

TEST_CASE("ALIGN"){
REQUIRE(ALIGN(0) == 0);
Expand Down
2 changes: 1 addition & 1 deletion messaging/socketmaster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <assert.h>

#include "services.h"
#include "messaging.hpp"
#include "messaging.h"

static inline uint64_t nanos_since_boot() {
struct timespec t;
Expand Down
2 changes: 1 addition & 1 deletion visionipc/visionipc_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <string>
#include <unistd.h>

#include "messaging.hpp"
#include "messaging.h"
#include "visionipc.h"
#include "visionbuf.h"

Expand Down
2 changes: 1 addition & 1 deletion visionipc/visionipc_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <sys/socket.h>
#include <unistd.h>

#include "messaging.hpp"
#include "messaging.h"
#include "ipc.h"
#include "visionipc_server.h"

Expand Down
2 changes: 1 addition & 1 deletion visionipc/visionipc_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <atomic>
#include <map>

#include "messaging.hpp"
#include "messaging.h"
#include "visionipc.h"
#include "visionbuf.h"

Expand Down

0 comments on commit 3be0bf5

Please sign in to comment.