~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to iocore/dns/P_SplitDNSProcessor.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-05-09 01:00:04 UTC
  • mto: (1.1.11) (5.3.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20130509010004-9fqq9n0adseg3f8w
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
   --------------------------- */
46
46
void ink_split_dns_init(ModuleVersion version);
47
47
 
48
 
#define MAX_CONFIGS  100
49
48
struct RequestData;
50
49
typedef RequestData RD;
51
50
 
267
266
{ }
268
267
 
269
268
 
270
 
/* --------------------------------------------------------------
271
 
   struct SDNS_UpdateContinuation
272
 
   Used to handle parent.conf or default parent updates after the
273
 
   manager signals a change
274
 
   -------------------------------------------------------------- */
275
 
struct SDNS_UpdateContinuation: public Continuation
276
 
{
277
 
  int handle_event(int event, void *data);
278
 
  SDNS_UpdateContinuation(ProxyMutex * m);
279
 
 
280
 
};
281
 
 
282
 
 
283
 
/* --------------------------------------------------------------
284
 
   SDNS_UpdateContinuation::SDNS_UpdateContinuation()
285
 
   -------------------------------------------------------------- */
286
 
TS_INLINE SDNS_UpdateContinuation::SDNS_UpdateContinuation(ProxyMutex * m)
287
 
: Continuation(m)
288
 
{
289
 
  SET_HANDLER(&SDNS_UpdateContinuation::handle_event);
290
 
}
291
 
 
292
 
 
293
 
/* --------------------------------------------------------------
294
 
   SDNS_UpdateContinuation::handle_event()
295
 
   -------------------------------------------------------------- */
296
 
TS_INLINE int
297
 
SDNS_UpdateContinuation::handle_event(int event, void *data)
298
 
{
299
 
  NOWARN_UNUSED(event);
300
 
  NOWARN_UNUSED(data);
301
 
 
302
 
  SplitDNSConfig::reconfigure();
303
 
  delete this;
304
 
 
305
 
  return EVENT_DONE;
306
 
}
307
 
 
308
269
/* ------------------
309
270
   Helper Functions
310
271
   ------------------ */