Skip to content

Commit 2ef4f9c

Browse files
committed
Undo remove usedProtocols & add protocols typedefs
1 parent 12697f9 commit 2ef4f9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/PiCode.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ namespace cPiCode {
2727
}
2828
}
2929

30-
typedef cPiCode::protocol_t protocol_t;
30+
typedef cPiCode::protocol_t protocol_t;
31+
typedef cPiCode::protocols_t protocols_t;
32+
typedef cPiCode::protocol_devices_t protocol_devices_t;
3133

3234
/* Class PiCode */
3335
/* ------------------------------------------------------------------------- */
@@ -64,6 +66,9 @@ class PiCode {
6466
/* Get PiCode libray version. Must be free() after use */
6567
char* getPiCodeVersion();
6668

69+
/* Getter for protocols_t* used_protocols */
70+
protocols_t* usedProtocols(){return cPiCode::pilight_protocols;}
71+
6772
};
6873

6974
/* Expose a default object instance */

0 commit comments

Comments
 (0)