|
The Assimilation Monitoring Project
|
Project common header file. More...


Go to the source code of this file.
Macros | |
| #define | DIMOF(a) (sizeof(a)/sizeof(a[0])) |
| Return dimension of array. More... | |
| #define | MALLOC0(nbytes) g_try_malloc0(nbytes) |
| should it just call g_malloc? More... | |
| #define | MALLOC(nbytes) g_try_malloc(nbytes) |
| should it just call g_malloc? More... | |
| #define | MALLOCTYPE(t) (g_try_new0(t, 1)) |
| malloc an object of type 't'. More... | |
| #define | FREE(m) g_free(m) |
| Our interface to free. More... | |
| #define | FSTATIC /* Static function */ |
| #define | FMT_64BIT "%"G_GINT64_MODIFIER |
| Format designator for a 64 bit integer. More... | |
| #define | WINEXPORT /* Nothing */ |
| #define | HAVE_PCAP_SET_RFMON 1 |
| #define | HAS_FORK |
| #define | g_unlink(arg) unlink(arg) |
| #define | g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) |
| #define | g_slist_free_full assim_slist_free_full |
| #define | DISCOVERY_DIR "/usr/share/assimilation/discovery_agents" |
| #define | CMAADDR "224.0.2.5:1984" |
| #define | NANOLISTENADDR "0.0.0.0:1984" |
| #define | VERSION_STRING "0.1.0" |
| #define | SHORT_LICENSE_STRING "GPLv3" |
| #define | LONG_LICENSE_STRING "The GNU General Public License Version 3" |
| #define | HAVE_UNISTD_H |
| #define | HAVE_SYS_UTSNAME_H |
| #define | HAVE_FCNTL_H |
| #define | HAVE_MCHECK_H |
| #define | HAVE_SYS_TYPES_H |
| #define | HAVE_SYS_SOCKET_H |
| #define | HAVE_NETDB_H |
| #define | HAVE_CLOCK_GETTIME |
| #define | HAVE_ENDPROTOENT |
| #define | HAVE_FCNTL |
| #define | HAVE_G_GET_REAL_TIME |
| #define | HAVE_G_GET_MONOTONIC_TIME |
| #define | HAVE_G_GET_ENVIRON |
| #define | HAVE_GETADDRINFO |
| #define | HAVE_GETEUID |
| #define | HAVE_KILL |
| #define | HAVE_MCHECK |
| #define | HAVE_MCHECK_PEDANTIC |
| #define | HAVE_SETPGID |
| #define | HAVE_SIGACTION |
| #define | HAVE_UNAME |
Functions | |
| void | assim_slist_free_full (GSList *list, GDestroyNotify free_func) |
Project common header file.
Every source file is supposed to include this header file. This file is part of the Assimilation Project.
The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/
Definition in file projectcommon.h.
| #define CMAADDR "224.0.2.5:1984" |
Definition at line 89 of file projectcommon.h.
Referenced by main().
| #define DIMOF | ( | a | ) | (sizeof(a)/sizeof(a[0])) |
Return dimension of array.
Definition at line 24 of file projectcommon.h.
| #define DISCOVERY_DIR "/usr/share/assimilation/discovery_agents" |
Definition at line 88 of file projectcommon.h.
| #define FMT_64BIT "%"G_GINT64_MODIFIER |
Format designator for a 64 bit integer.
Definition at line 32 of file projectcommon.h.
Referenced by _configcontext_elem_toString(), _fsprotocol_receive(), _fsqueue_ackthrough(), _fsqueue_enq(), _fsqueue_flush(), _fsqueue_inqsorted(), _fsqueue_toString(), _hblistener_got_frameset(), _intframe_toString(), _real_warntime_agent(), _resource_queue_endnotify(), _seqnoframe_toString(), assim_merge_environ(), and main().
| #define FREE | ( | m | ) | g_free(m) |
Our interface to free.
Definition at line 29 of file projectcommon.h.
Referenced by _addrframe_finalize(), _addrframe_setaddr(), _configcontext_elem_toString(), _frameset_finalize(), _fsproto_fsa(), _fsprotocol_protoelem_destroy(), _ipportframe_finalize(), _ipportframe_setaddr(), _netaddr_finalize(), _netio_recvapacket(), _netio_recvframesets(), _packetdecoder_finalize(), _signframe_compute_cksum(), _signframe_isvalid(), _signframe_updatedata(), _switchdiscovery_cache_info(), frame_default_valuefinalize(), frameset_construct_packet(), obey_pingpong(), and proj_class_free().
| #define FSTATIC /* Static function */ |
Definition at line 31 of file projectcommon.h.
| #define g_info | ( | ... | ) | g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) |
Definition at line 66 of file projectcommon.h.
Referenced by main(), and nano_shutdown().
| #define g_slist_free_full assim_slist_free_full |
Definition at line 73 of file projectcommon.h.
| #define g_unlink | ( | arg | ) | unlink(arg) |
Definition at line 61 of file projectcommon.h.
Referenced by catch_pid_signal(), create_pid_file(), kill_pid_service(), and remove_pid_file().
| #define HAS_FORK |
Definition at line 52 of file projectcommon.h.
| #define HAVE_CLOCK_GETTIME |
Definition at line 102 of file projectcommon.h.
| #define HAVE_ENDPROTOENT |
Definition at line 103 of file projectcommon.h.
| #define HAVE_FCNTL |
Definition at line 104 of file projectcommon.h.
| #define HAVE_FCNTL_H |
Definition at line 96 of file projectcommon.h.
| #define HAVE_G_GET_ENVIRON |
Definition at line 107 of file projectcommon.h.
| #define HAVE_G_GET_MONOTONIC_TIME |
Definition at line 106 of file projectcommon.h.
| #define HAVE_G_GET_REAL_TIME |
Definition at line 105 of file projectcommon.h.
| #define HAVE_GETADDRINFO |
Definition at line 108 of file projectcommon.h.
| #define HAVE_GETEUID |
Definition at line 110 of file projectcommon.h.
| #define HAVE_KILL |
Definition at line 111 of file projectcommon.h.
| #define HAVE_MCHECK |
Definition at line 112 of file projectcommon.h.
| #define HAVE_MCHECK_H |
Definition at line 97 of file projectcommon.h.
| #define HAVE_MCHECK_PEDANTIC |
Definition at line 113 of file projectcommon.h.
| #define HAVE_NETDB_H |
Definition at line 100 of file projectcommon.h.
| #define HAVE_PCAP_SET_RFMON 1 |
Definition at line 46 of file projectcommon.h.
| #define HAVE_SETPGID |
Definition at line 114 of file projectcommon.h.
| #define HAVE_SIGACTION |
Definition at line 115 of file projectcommon.h.
| #define HAVE_SYS_SOCKET_H |
Definition at line 99 of file projectcommon.h.
| #define HAVE_SYS_TYPES_H |
Definition at line 98 of file projectcommon.h.
| #define HAVE_SYS_UTSNAME_H |
Definition at line 95 of file projectcommon.h.
| #define HAVE_UNAME |
Definition at line 116 of file projectcommon.h.
| #define HAVE_UNISTD_H |
Definition at line 94 of file projectcommon.h.
| #define LONG_LICENSE_STRING "The GNU General Public License Version 3" |
Definition at line 93 of file projectcommon.h.
Referenced by main().
| #define MALLOC | ( | nbytes | ) | g_try_malloc(nbytes) |
should it just call g_malloc?
Definition at line 26 of file projectcommon.h.
Referenced by _addrframe_setaddr(), _ipportframe_setaddr(), _netio_recvapacket(), and cma.AssimCclasses.pyFrame::setvalue().
| #define MALLOC0 | ( | nbytes | ) | g_try_malloc0(nbytes) |
should it just call g_malloc?
Definition at line 25 of file projectcommon.h.
Referenced by _signframe_compute_cksum(), construct_pcap_frameset(), frameset_construct_packet(), packetdecoder_new(), and proj_class_new().
| #define MALLOCTYPE | ( | t | ) | (g_try_new0(t, 1)) |
malloc an object of type 't'.
Or should it just call g_new0?
Definition at line 27 of file projectcommon.h.
Referenced by _fsprotocol_addconn().
| #define NANOLISTENADDR "0.0.0.0:1984" |
Definition at line 90 of file projectcommon.h.
Referenced by main().
| #define SHORT_LICENSE_STRING "GPLv3" |
Definition at line 92 of file projectcommon.h.
| #define VERSION_STRING "0.1.0" |
Definition at line 91 of file projectcommon.h.
Referenced by main().
| #define WINEXPORT /* Nothing */ |
Definition at line 45 of file projectcommon.h.
| void assim_slist_free_full | ( | GSList * | list, |
| GDestroyNotify | free_func | ||
| ) |