You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
984 B
54 lines
984 B
/**************************************************************************\
|
|
*
|
|
* Copyright (c) 1998 Microsoft Corporation
|
|
*
|
|
* Module Name:
|
|
*
|
|
* Driver-specific data
|
|
*
|
|
* Abstract:
|
|
*
|
|
* This module gives drivers a way to attach private data to GDI+
|
|
* objects.
|
|
*
|
|
* Created:
|
|
*
|
|
* 3/18/1999 agodfrey
|
|
*
|
|
\**************************************************************************/
|
|
|
|
#include "precomp.hpp"
|
|
|
|
DpDriverDataList::~DpDriverDataList()
|
|
{
|
|
DpDriverData *p=head;
|
|
while (p)
|
|
{
|
|
DpDriverData *tmp = p->next;
|
|
delete p;
|
|
p = tmp;
|
|
}
|
|
}
|
|
|
|
void DpDriverDataList::Add(DpDriverData *dd, DpDriver *owner)
|
|
{
|
|
dd->owner = owner;
|
|
dd->next = head;
|
|
head = dd;
|
|
}
|
|
|
|
DpDriverData *DpDriverDataList::GetData(DpDriver *owner)
|
|
{
|
|
DpDriverData *p=head;
|
|
while (p)
|
|
{
|
|
if (p->owner == owner)
|
|
{
|
|
return p;
|
|
}
|
|
p = p->next;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|