aboutsummaryrefslogtreecommitdiffstats
path: root/src/pad_common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pad_common.cpp')
-rw-r--r--src/pad_common.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pad_common.cpp b/src/pad_common.cpp
index 9cbd11f..450b122 100644
--- a/src/pad_common.cpp
+++ b/src/pad_common.cpp
@@ -98,6 +98,13 @@ PADPacketizer::~PADPacketizer() {
}
}
+void PADPacketizer::AddDG(DATA_GROUP* dg, bool prepend) {
+ queue.insert(prepend ? queue.begin() : queue.end(), dg);
+}
+
+void PADPacketizer::AddDGs(const std::vector<DATA_GROUP*>& dgs, bool prepend) {
+ queue.insert(prepend ? queue.begin() : queue.end(), dgs.cbegin(), dgs.cend());
+}
pad_t* PADPacketizer::GetPAD() {
bool pad_flushable = false;