2 * Copyright (C) ARM Limited 2010-2014. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
9 #ifndef EXTERNALSOURCE_H
10 #define EXTERNALSOURCE_H
12 #include <semaphore.h>
16 #include "OlySocket.h"
19 // Counters from external sources like graphics drivers and annotations
20 class ExternalSource : public Source {
22 ExternalSource(sem_t *senderSem);
30 void write(Sender *sender);
33 void waitFor(const int bytes);
34 void configureConnection(const int fd, const char *const handshake, size_t size);
41 OlyServerSocket mMveStartupUds;
42 OlyServerSocket mMaliStartupUds;
43 OlyServerSocket mAnnotate;
48 // Intentionally unimplemented
49 ExternalSource(const ExternalSource &);
50 ExternalSource &operator=(const ExternalSource &);
53 #endif // EXTERNALSOURCE_H