~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/event_observer.h

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#ifndef DRIZZLED_PLUGIN_EVENT_OBSERVER_H
44
44
#define DRIZZLED_PLUGIN_EVENT_OBSERVER_H
45
45
 
46
 
#include <drizzled/plugin/plugin.h>
 
46
#include "drizzled/plugin/plugin.h"
 
47
#include "drizzled/session.h"
47
48
 
48
49
#include <string>
49
50
 
50
 
#include <drizzled/visibility.h>
 
51
#include "drizzled/visibility.h"
51
52
 
52
53
namespace drizzled
53
54
{
295
296
  // Call all the event observers that are registered for this event.
296
297
  virtual bool callEventObservers();
297
298
  
298
 
  static bool hasEvents(Session &in_session);
 
299
  static bool hasEvents(Session &in_session) { return (in_session.getSessionObservers() != NULL);}
299
300
};
300
301
 
301
302
//-----
336
337
  // Call all the event observers that are registered for this event.
337
338
  virtual bool callEventObservers();
338
339
  
339
 
  static bool hasEvents(Table &in_table);
 
340
  static bool hasEvents(Table &in_table) { return (in_table.getMutableShare()->getTableObservers() != NULL);}
340
341
};
341
342
 
342
343
//-----