00001
00002
00003
00004
00005 #if !defined(_INCLUDED_OBJS_H_HEADER__)
00006 #define _INCLUDED_OBJS_H_HEADER__
00007
00013 typedef struct mpr_rectangle_t
00014 {
00015 apr_int32_t x;
00016 apr_int32_t y;
00017 apr_int32_t w;
00018 apr_int32_t h;
00019 } mpr_rectangle_t;
00020
00021 APR_RING_HEAD(mpr_node_ring_t, mpr_node_t);
00022 typedef struct mpr_node_ring_t mpr_node_ring_t;
00023
00029 typedef struct mpr_map_t
00030 {
00031 const char *title;
00032 apr_size_t cx;
00033 apr_size_t max_x;
00034 apr_size_t cy;
00035 apr_size_t max_y;
00036 gdImagePtr img;
00037 mpr_node_ring_t nodes;
00038 } mpr_map_t;
00039
00045 typedef struct mpr_node_t
00046 {
00047 APR_RING_ENTRY(mpr_node_t) link;
00048 char *ip;
00049 char *name;
00050 sul_boolean_t unknown;
00051 sul_boolean_t alive;
00052 apr_size_t x, y;
00053 apr_size_t ix, iy;
00054 double status;
00055 } mpr_node_t;
00056
00062 void mpr_map_nodes_render(mpr_map_t *map);
00063
00064 #endif