Make headers and macros private

SVN revision: 24817
This commit is contained in:
sebastid 2006-08-16 18:57:58 +00:00 committed by sebastid
parent 04090c04d9
commit d0532a359a
2 changed files with 12 additions and 17 deletions

View File

@ -1,15 +1,8 @@
#ifndef _ECORE_DESKTOP_H
# define _ECORE_DESKTOP_H
/* FIXME: No unnecessary includes in exported headers, when things settle down and we know what is unnecessary. */
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <Ecore_Data.h>
/**
* @file Ecore_Desktop.h
* @brief The file that provides the freedesktop.org desktop, icon, and menu
@ -33,16 +26,6 @@
* For menu file details, see @ref Ecore_Desktop_Menu_Group.
*/
#define MAX_PATH 4096
/* FIXME: No unnecessary macros in exported headers, when things settle down and we know what is unnecessary. */
#define E_FN_DEL(_fn, _h) if (_h) { _fn(_h); _h = NULL; }
#define E_REALLOC(p, s, n) p = (s *)realloc(p, sizeof(s) * n)
#define E_NEW(s, n) (s *)calloc(n, sizeof(s))
#define E_NEW_BIG(s, n) (s *)malloc(n * sizeof(s))
#define E_FREE(p) { if (p) {free(p); p = NULL;} }
extern Ecore_List *ecore_desktop_paths_config;
extern Ecore_List *ecore_desktop_paths_menus;
extern Ecore_List *ecore_desktop_paths_directories;

View File

@ -1,8 +1,20 @@
#ifndef _ECORE_DESKTOP_PRIVATE_H
# define _ECORE_DESKTOP_PRIVATE_H
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <Ecore_File.h>
#define MAX_PATH 4096
#define E_FN_DEL(_fn, _h) if (_h) { _fn(_h); _h = NULL; }
#define E_REALLOC(p, s, n) p = (s *)realloc(p, sizeof(s) * n)
#define E_NEW(s, n) (s *)calloc(n, sizeof(s))
#define E_NEW_BIG(s, n) (s *)malloc(n * sizeof(s))
#define E_FREE(p) { if (p) {free(p); p = NULL;} }
# ifdef __cplusplus
extern "C"
{