Debian Codegraph @

mtp/backend/haiku/usb/Context.cpp

raw
1 /*
2 * Context.cpp
3 * Copyright (C) 2022 pulkomandy <pulkomandy@shredder>
4 *
5 * Distributed under terms of the MIT license.
6 */
7
8 #include "Context.h"
9
10 namespace mtp { namespace usb
11 {
12 Context::Context(int debugLevel)
13 : BUSBRoster()
14 {
15 Start();
16 }
17
18 Context::~Context() {
19 Stop();
20 }
21
22 status_t Context::DeviceAdded(BUSBDevice* device) {
23 _devices.emplace_back(std::make_shared<DeviceDescriptor>(device));
24
25 return B_OK;
26 }
27
28 void Context::DeviceRemoved(BUSBDevice* device) {
29 // TODO _devices.remove(device);
30 }
31
32
33 } };