Commit 71c2d9df authored by Lubomir Bulej's avatar Lubomir Bulej
Browse files

Extract AGENT_NAME into dislagent.h

parent c39a77b1
......@@ -7,6 +7,14 @@
#include <strings.h>
#include <assert.h>
#include "dislagent.h"
//
#ifndef AGENT_NAME
#error AGENT_NAME macro has to be defined
#endif
//
/**
......
......@@ -72,8 +72,6 @@
#define ERROR_STD 10002
#define ERROR_JVMTI 10003
#define AGENT_NAME "disl-agent"
//
void die_with_error (const char * format, va_list args);
......
......@@ -2,7 +2,18 @@
#define _DEBUG_H
#include <stdio.h>
#include <inttypes.h>
#include "common.h"
#include "dislagent.h"
//
#ifndef AGENT_NAME
#error AGENT_NAME macro has to be defined
#endif
//
/**
* Prints a debug message to stdout (if DEBUG is defined).
......
#include "dislagent.h"
#include "common.h"
#include "config.h"
#include "strutil.h"
......@@ -23,6 +24,11 @@
#include <jni.h>
#include <jvmti.h>
//
#ifndef AGENT_NAME
#error AGENT_NAME macro has to be defined
#endif
// ****************************************************************************
// AGENT CONFIG
......@@ -31,8 +37,7 @@
#define DISL_SERVER_HOST "disl.server.host"
#define DISL_SERVER_HOST_DEFAULT "localhost"
// Required argument
// No default value.
// Required argument, no default value.
#define DISL_INSTRUMENTATION "disl.instrumentation"
#define LIST_SEPARATOR ":"
......
#ifndef _DISLAGENT_H
#define _DISLAGENT_H
#include <stdbool.h>
//
#define AGENT_NAME "disl-agent"
//
bool agent_debug_is_enabled ();
#endif // _DISLAGENT_H
......@@ -13,6 +13,7 @@
#include "common.h"
#include "strutil.h"
#include "dislagent.h"
//
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment