static void send_via(void* handle, int32_t min, int32_t max) { net_message_t msg; void* payload = send_getPayload(handle, &msg, 2 * sizeof(int32_t)); memcpy(payload, &min, sizeof(int32_t)); memcpy(payload + sizeof(int32_t), &max, sizeof(int32_t)); error_t res = send_send(handle, &msg, 2 * sizeof(int32_t)); assert(res == SUCCESS); }
void DataSource::send(const QString &mimeType, int fd) { send_send(mimeType, fd); close(fd); }