50 Call_SingleStringArg arg;
51 if (!arg.Decode(&call.
tuple))
53 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
57 std::shared_ptr<std::vector<char> > data(
new std::vector<char>(arg.arg.begin(), arg.arg.end()));
61 sLog.Magenta(
" PhotoUploadSvc",
"Received image from account %u, size: %u", call.
client->
GetUserID(), (
uint32)arg.arg.size());
Dispatcher *const m_dispatch
void SetPicRec(bool set=false)
PyCallable_Make_InnerDispatcher(PhotoUploadService) PhotoUploadService
const char * GetName() const
#define sLog
Evaluates to a NewLog instance.
virtual ~PhotoUploadService()
Dispatcher *const m_dispatch
#define codelog(type, fmt,...)
#define PyCallable_REG_CALL(c, m)