Skip to content

Commit

Permalink
@1665701 Add missing stub implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuna committed Mar 17, 2014
1 parent 0fb06d4 commit 50eda14
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <cassert>
#include <cstdlib> // for abort()
#include <functional> // For dummy agent_id impl

#include "eos/agent.h"
#include "impl.h"

Expand Down Expand Up @@ -34,5 +36,12 @@ agent_exit() {
impl.stop_loop();
}

uint32_t
agent_id(const char * agent_name) {
// Dummy implementation. Eventually we should base this of
// /proc/run or some other universal lookup.
std::hash<const char *> h;
return h(agent_name);
}

}

0 comments on commit 50eda14

Please sign in to comment.