2007-10-06 00:17:44 +00:00
/*
2004-04-04 16:24:08 +00:00
Unix SMB / CIFS implementation .
Registry interface
2007-08-26 15:16:40 +00:00
Copyright ( C ) Jelmer Vernooij 2007.
2007-10-06 00:17:44 +00:00
2004-04-04 16:24:08 +00:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-10 02:07:03 +00:00
the Free Software Foundation ; either version 3 of the License , or
2004-04-04 16:24:08 +00:00
( at your option ) any later version .
2007-10-06 00:17:44 +00:00
2004-04-04 16:24:08 +00:00
This program 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 General Public License for more details .
2007-10-06 00:17:44 +00:00
2004-04-04 16:24:08 +00:00
You should have received a copy of the GNU General Public License
2007-07-10 02:07:03 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2004-04-04 16:24:08 +00:00
*/
# include "includes.h"
# include "lib/registry/common/registry.h"
2004-04-08 22:39:47 +00:00
# include "windows/registry.h"
2004-04-04 16:24:08 +00:00
2004-12-10 20:07:04 +00:00
static WERROR wine_open_reg ( struct registry_hive * h , struct registry_key * * key )
{
/* FIXME: Open h->location and mmap it */
}
2004-04-04 16:24:08 +00:00
static REG_OPS reg_backend_wine = {
. name = " wine " ,
2004-12-10 20:07:04 +00:00
. open_hive = wine_open_reg ,
2007-10-06 00:17:44 +00:00
2004-04-04 16:24:08 +00:00
} ;
2004-05-13 10:20:53 +00:00
NTSTATUS registry_wine_init ( void )
2004-04-04 16:24:08 +00:00
{
register_backend ( " registry " , & reg_backend_wine ) ;
return NT_STATUS_OK ;
}
2004-12-10 20:07:04 +00:00
WERROR reg_open_wine ( struct registry_key * * ctx )
{
/* FIXME: Open ~/.wine/system.reg, etc */
return WERR_NOT_SUPPORTED ;
}