Do some rearranging of the files in libnotify, and include things properly so people can actually use the library without fudging with include paths.
This commit is contained in:
parent
f351f656e5
commit
3dac8b3d66
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
Thu Jan 19 22:07:41 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
||||
|
||||
A libnotify/internal.h:
|
||||
A libnotify/notification.c:
|
||||
A libnotify/notification.h:
|
||||
D libnotify/notifycommon.h:
|
||||
D libnotify/notifynotification.c:
|
||||
D libnotify/notifynotification.h:
|
||||
* libnotify/Makefile.am:
|
||||
* libnotify/notify.c:
|
||||
* libnotify/notify.h:
|
||||
- Do some rearranging of the files in libnotify, and include things
|
||||
properly so people can actually use the library without fudging with
|
||||
include paths.
|
||||
|
||||
Thu Jan 19 21:56:29 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
||||
|
||||
* libnotify/Makefile.am:
|
||||
|
|
|
@ -7,15 +7,14 @@ lib_LTLIBRARIES = libnotify.la
|
|||
|
||||
notifyinc_HEADERS = \
|
||||
notify.h \
|
||||
notifynotification.h \
|
||||
notifycommon.h
|
||||
notification.h
|
||||
|
||||
noinst_HEADERS = \
|
||||
notify-marshal.h
|
||||
|
||||
libnotify_la_SOURCES = \
|
||||
notify.c \
|
||||
notifynotification.c \
|
||||
notification.c \
|
||||
notify-marshal.c
|
||||
|
||||
libnotify_la_LIBADD = \
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* @file libnotify/internal.h Internal definitions
|
||||
*
|
||||
* @Copyright (C) 2006 Christian Hammond
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#ifndef _LIBNOTIFY_INTERNAL_H_
|
||||
#define _LIBNOTIFY_INTERNAL_H_
|
||||
|
||||
#define NOTIFY_DBUS_NAME "org.freedesktop.Notifications"
|
||||
#define NOTIFY_DBUS_CORE_INTERFACE "org.freedesktop.Notifications"
|
||||
#define NOTIFY_DBUS_CORE_OBJECT "/org/freedesktop/Notifications"
|
||||
|
||||
#endif /* _LIBNOTIFY_INTERNAL_H_ */
|
|
@ -23,9 +23,9 @@
|
|||
#include <dbus/dbus.h>
|
||||
#include <dbus/dbus-glib.h>
|
||||
|
||||
#include "notify.h"
|
||||
#include "notifynotification.h"
|
||||
#include "notify-marshal.h"
|
||||
#include <libnotify/notify.h>
|
||||
#include <libnotify/notify-marshal.h>
|
||||
#include <libnotify/internal.h>
|
||||
|
||||
static void notify_notification_class_init(NotifyNotificationClass *klass);
|
||||
static void notify_notification_init(NotifyNotification *sp);
|
|
@ -26,10 +26,11 @@
|
|||
#include <glib-object.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "notifycommon.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define NOTIFY_TIMEOUT_DEFAULT -1
|
||||
#define NOTIFY_TIMEOUT_NEVER 0
|
||||
|
||||
#define NOTIFY_TYPE_NOTIFICATION (notify_notification_get_type ())
|
||||
#define NOTIFY_NOTIFICATION(o) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST ((o), NOTIFY_TYPE_NOTIFICATION, \
|
||||
|
@ -45,6 +46,7 @@ G_BEGIN_DECLS
|
|||
(G_TYPE_INSTANCE_GET_CLASS ((o), NOTIFY_TYPE_NOTIFICATION, \
|
||||
NotifyNotificationClass))
|
||||
|
||||
|
||||
typedef struct _NotifyNotification NotifyNotification;
|
||||
typedef struct _NotifyNotificationClass NotifyNotificationClass;
|
||||
typedef struct _NotifyNotificationPrivate NotifyNotificationPrivate;
|
||||
|
@ -63,6 +65,17 @@ struct _NotifyNotificationClass
|
|||
void (*closed)(NotifyNotification *notification);
|
||||
};
|
||||
|
||||
/**
|
||||
* Notification urgency levels.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
NOTIFY_URGENCY_LOW, /**< Low urgency. */
|
||||
NOTIFY_URGENCY_NORMAL, /**< Normal urgency. */
|
||||
NOTIFY_URGENCY_CRITICAL, /**< Critical urgency. */
|
||||
|
||||
} NotifyUrgency;
|
||||
|
||||
typedef void (*NotifyActionCallback)(NotifyNotification *, gchar *);
|
||||
|
||||
GType notify_notification_get_type();
|
|
@ -28,13 +28,14 @@
|
|||
# define DBUS_API_SUBJECT_TO_CHANGE 1
|
||||
#endif
|
||||
|
||||
#include "notify.h"
|
||||
#include <dbus/dbus.h>
|
||||
#include <dbus/dbus-glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
#include <libnotify/notify.h>
|
||||
#include <libnotify/internal.h>
|
||||
|
||||
static gboolean _initted = FALSE;
|
||||
static gchar *_app_name = NULL;
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
#include <glib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "notifycommon.h"
|
||||
#include "notifynotification.h"
|
||||
#include <libnotify/notification.h>
|
||||
|
||||
/**************************************************************************/
|
||||
/** @name libnotify Base API */
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
#ifndef _LIBNOTIFY_NOTIFY_COMMON_H_
|
||||
#define _LIBNOTIFY_NOTIFY_COMMON_H_
|
||||
#include <glib.h>
|
||||
|
||||
#define NOTIFY_TIMEOUT_DEFAULT -1
|
||||
#define NOTIFY_TIMEOUT_NEVER 0
|
||||
|
||||
#define NOTIFY_DBUS_NAME "org.freedesktop.Notifications"
|
||||
#define NOTIFY_DBUS_CORE_INTERFACE "org.freedesktop.Notifications"
|
||||
#define NOTIFY_DBUS_CORE_OBJECT "/org/freedesktop/Notifications"
|
||||
|
||||
/**
|
||||
* Notification urgency levels.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
NOTIFY_URGENCY_LOW, /**< Low urgency. */
|
||||
NOTIFY_URGENCY_NORMAL, /**< Normal urgency. */
|
||||
NOTIFY_URGENCY_CRITICAL, /**< Critical urgency. */
|
||||
|
||||
} NotifyUrgency;
|
||||
|
||||
#endif /* _LIBNOTIFY_NOTIFY_H_ */
|
Loading…
Reference in New Issue