forked from mirrors/kore
Style changes.
This commit is contained in:
parent
ec9ea6df36
commit
81c3325677
|
@ -26,8 +26,11 @@ extern "C" {
|
||||||
int
|
int
|
||||||
page(struct http_request *req)
|
page(struct http_request *req)
|
||||||
{
|
{
|
||||||
example_class example;
|
example_class example;
|
||||||
const char* str = example.a();
|
const char *str = example.a();
|
||||||
http_response(req, 200, static_cast<void*>(const_cast<char*>(str)), strlen(str));
|
|
||||||
|
http_response(req, 200,
|
||||||
|
static_cast<void*>(const_cast<char*>(str)), strlen(str));
|
||||||
|
|
||||||
return (KORE_RESULT_OK);
|
return (KORE_RESULT_OK);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,14 +17,12 @@
|
||||||
#include "example_class.h"
|
#include "example_class.h"
|
||||||
|
|
||||||
example_class::example_class() {
|
example_class::example_class() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
example_class::~example_class() {
|
example_class::~example_class() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char*
|
const char *
|
||||||
example_class::a() {
|
example_class::a() {
|
||||||
return "Hello world!";
|
return "Hello world!";
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,13 +20,11 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
class example_class {
|
class example_class {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
example_class();
|
example_class();
|
||||||
~example_class();
|
~example_class();
|
||||||
|
|
||||||
const char*
|
const char *a();
|
||||||
a();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined(____example_class__) */
|
#endif /* defined(____example_class__) */
|
||||||
|
|
Loading…
Reference in New Issue