Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

Location:
vendor/current/source4/lib/events
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/lib/events/events.h

    r414 r740  
    22#define __LIB_EVENTS_H__
    33#define TEVENT_COMPAT_DEFINES 1
    4 #include <../lib/tevent/tevent.h>
     4#include <tevent.h>
    55struct tevent_context *s4_event_context_init(TALLOC_CTX *mem_ctx);
    66struct tevent_context *event_context_find(TALLOC_CTX *mem_ctx) _DEPRECATED_;
     7void s4_event_context_set_default(struct tevent_context *ev);
    78#endif /* __LIB_EVENTS_H__ */
  • vendor/current/source4/lib/events/tevent_s4.c

    r414 r740  
    7272}
    7373
    74 /*
    75   find an event context that is a parent of the given memory context,
    76   or create a new event context as a child of the given context if
    77   none is found
    78 
    79   This should be used in preference to event_context_init() in places
    80   where you would prefer to use the existing event context if possible
    81   (which is most situations)
    82 */
    83 struct tevent_context *event_context_find(TALLOC_CTX *mem_ctx)
    84 {
    85         struct tevent_context *ev = talloc_find_parent_bytype(mem_ctx, struct tevent_context);
    86         if (ev == NULL) {               
    87                 ev = tevent_context_init(mem_ctx);
    88         }
    89         return ev;
    90 }
Note: See TracChangeset for help on using the changeset viewer.