Skip to content

Commit

Permalink
moved definitions around
Browse files Browse the repository at this point in the history
  • Loading branch information
thattil committed Sep 6, 2024
1 parent 27d2598 commit 581a2cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions slsDetectorSoftware/src/CallerSpecial.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "Caller.h"
#include "sls/ZmqSocket.h"
#include "sls/bit_utils.h"
#include "sls/file_utils.h"
#include "sls/logger.h"
Expand Down
2 changes: 2 additions & 0 deletions slsSupportLib/include/sls/ZmqSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ namespace sls {
#define DEFAULT_LOW_ZMQ_HWM_BUFFERSIZE (1024 * 1024) // 1MB
#define DEFAULT_ZMQ_BUFFERSIZE (-1) // os default

#define ZMQ_PUBLISHER_IP "0.0.0.0"

/** zmq header structure */
struct zmqHeader {
/** true if incoming data, false if end of acquisition */
Expand Down
8 changes: 3 additions & 5 deletions slsSupportLib/include/sls/sls_detector_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@

#define LOCALHOST_IP "127.0.0.1"

#define ZMQ_PUBLISHER_IP "0.0.0.0"

/** default maximum string length */
#define MAX_STR_LENGTH 1000
#define SHORT_STR_LENGTH 20
Expand Down Expand Up @@ -183,9 +181,9 @@ class slsDetectorDefs {
int ymin{-1};
int ymax{-1};
ROI() = default;
ROI(int xmin, int xmax) : xmin(xmin), xmax(xmax){};
ROI(int xmin, int xmax) : xmin(xmin), xmax(xmax) {};
ROI(int xmin, int xmax, int ymin, int ymax)
: xmin(xmin), xmax(xmax), ymin(ymin), ymax(ymax){};
: xmin(xmin), xmax(xmax), ymin(ymin), ymax(ymax) {};
constexpr std::array<int, 4> getIntArray() const {
return std::array<int, 4>({xmin, xmax, ymin, ymax});
}
Expand Down Expand Up @@ -236,7 +234,7 @@ typedef struct {
int x{0};
int y{0};
xy() = default;
xy(int x, int y) : x(x), y(y){};
xy(int x, int y) : x(x), y(y) {};
} __attribute__((packed));
#endif

Expand Down

0 comments on commit 581a2cc

Please sign in to comment.